github.com/deliveroo/gqlgen@v0.7.2/example/selection/models_gen.go (about)

     1  // Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
     2  
     3  package selection
     4  
     5  import (
     6  	"time"
     7  )
     8  
     9  type Event interface {
    10  	IsEvent()
    11  }
    12  
    13  type Like struct {
    14  	Reaction  string    `json:"reaction"`
    15  	Sent      time.Time `json:"sent"`
    16  	Selection []string  `json:"selection"`
    17  	Collected []string  `json:"collected"`
    18  }
    19  
    20  func (Like) IsEvent() {}
    21  
    22  type Post struct {
    23  	Message   string    `json:"message"`
    24  	Sent      time.Time `json:"sent"`
    25  	Selection []string  `json:"selection"`
    26  	Collected []string  `json:"collected"`
    27  }
    28  
    29  func (Post) IsEvent() {}