Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultFilter ¶
type Group ¶
type Group struct { ID int `pg:",pk" json:"id" gqlgen:"id"` ConqueredVillagesChannelID string `pg:",use_zero" json:"conqueredVillagesChannelID" gqlgen:"conqueredVillagesChannelID"` LostVillagesChannelID string `pg:",use_zero" json:"lostVillagesChannelID" gqlgen:"lostVillagesChannelID"` ShowEnnobledBarbarians bool `pg:",use_zero"` ShowInternals bool `pg:",use_zero"` ServerID string `pg:"on_delete:CASCADE,use_zero" json:"serverID" gqlgen:"serverID"` Server *Server `json:"server,omitempty" gqlgen:"server" pg:"rel:has-one"` Observations Observations `json:"observation,omitempty" gqlgen:"observation" pg:"rel:has-many"` }
type GroupFilter ¶
type GroupFilter struct { ID []int ServerID []string DefaultFilter }
func (*GroupFilter) ApplyWithAlias ¶
type Observation ¶
type Observation struct { ID int `json:"id" gqlgen:"id"` Server string `pg:"unique:group_1,use_zero" json:"server" gqlgen:"server"` TribeID int `pg:"unique:group_1,use_zero" json:"tribeID" gqlgen:"tribeID"` Tribe *twmodel.Tribe `pg:"-"` GroupID int `pg:"on_delete:CASCADE,unique:group_1,use_zero" json:"groupID" gqlgen:"groupID"` Group *Group `json:"group,omitempty" gqlgen:"group" pg:"rel:has-one"` CreatedAt time.Time `pg:"default:now()" json:"createdAt" gqlgen:"createdAt" xml:"createdAt"` // contains filtered or unexported fields }
type ObservationFilter ¶
type ObservationFilter struct { ID []int Server []string GroupID []int DefaultFilter }
func (*ObservationFilter) ApplyWithAlias ¶
type Observations ¶
type Observations []*Observation
type ServerFilter ¶
type ServerFilter struct { ID []string DefaultFilter }
func (*ServerFilter) ApplyWithAlias ¶
Click to show internal directories.
Click to hide internal directories.