Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Game) predicate.Game
- func AssassinChance(v uint8) predicate.Game
- func AssassinChanceEQ(v uint8) predicate.Game
- func AssassinChanceGT(v uint8) predicate.Game
- func AssassinChanceGTE(v uint8) predicate.Game
- func AssassinChanceIn(vs ...uint8) predicate.Game
- func AssassinChanceLT(v uint8) predicate.Game
- func AssassinChanceLTE(v uint8) predicate.Game
- func AssassinChanceNEQ(v uint8) predicate.Game
- func AssassinChanceNotIn(vs ...uint8) predicate.Game
- func Capacity(v uint8) predicate.Game
- func CapacityEQ(v uint8) predicate.Game
- func CapacityGT(v uint8) predicate.Game
- func CapacityGTE(v uint8) predicate.Game
- func CapacityIn(vs ...uint8) predicate.Game
- func CapacityLT(v uint8) predicate.Game
- func CapacityLTE(v uint8) predicate.Game
- func CapacityNEQ(v uint8) predicate.Game
- func CapacityNotIn(vs ...uint8) predicate.Game
- func Closed(v bool) predicate.Game
- func ClosedEQ(v bool) predicate.Game
- func ClosedNEQ(v bool) predicate.Game
- func CreatedAt(v time.Time) predicate.Game
- func CreatedAtEQ(v time.Time) predicate.Game
- func CreatedAtGT(v time.Time) predicate.Game
- func CreatedAtGTE(v time.Time) predicate.Game
- func CreatedAtIn(vs ...time.Time) predicate.Game
- func CreatedAtLT(v time.Time) predicate.Game
- func CreatedAtLTE(v time.Time) predicate.Game
- func CreatedAtNEQ(v time.Time) predicate.Game
- func CreatedAtNotIn(vs ...time.Time) predicate.Game
- func CreatedBy(v int64) predicate.Game
- func CreatedByEQ(v int64) predicate.Game
- func CreatedByGT(v int64) predicate.Game
- func CreatedByGTE(v int64) predicate.Game
- func CreatedByIn(vs ...int64) predicate.Game
- func CreatedByLT(v int64) predicate.Game
- func CreatedByLTE(v int64) predicate.Game
- func CreatedByNEQ(v int64) predicate.Game
- func CreatedByNotIn(vs ...int64) predicate.Game
- func DeletedAt(v time.Time) predicate.Game
- func DeletedAtEQ(v time.Time) predicate.Game
- func DeletedAtGT(v time.Time) predicate.Game
- func DeletedAtGTE(v time.Time) predicate.Game
- func DeletedAtIn(vs ...time.Time) predicate.Game
- func DeletedAtLT(v time.Time) predicate.Game
- func DeletedAtLTE(v time.Time) predicate.Game
- func DeletedAtNEQ(v time.Time) predicate.Game
- func DeletedAtNotIn(vs ...time.Time) predicate.Game
- func HasGameUsers() predicate.Game
- func HasGameUsersWith(preds ...predicate.GameUser) predicate.Game
- func HasMissions() predicate.Game
- func HasMissionsWith(preds ...predicate.Mission) predicate.Game
- func HasRoom() predicate.Game
- func HasRoomWith(preds ...predicate.Room) predicate.Game
- func ID(id int64) predicate.Game
- func IDEQ(id int64) predicate.Game
- func IDGT(id int64) predicate.Game
- func IDGTE(id int64) predicate.Game
- func IDIn(ids ...int64) predicate.Game
- func IDLT(id int64) predicate.Game
- func IDLTE(id int64) predicate.Game
- func IDNEQ(id int64) predicate.Game
- func IDNotIn(ids ...int64) predicate.Game
- func Not(p predicate.Game) predicate.Game
- func Or(predicates ...predicate.Game) predicate.Game
- func ResultEQ(v Result) predicate.Game
- func ResultIn(vs ...Result) predicate.Game
- func ResultNEQ(v Result) predicate.Game
- func ResultNotIn(vs ...Result) predicate.Game
- func ResultValidator(r Result) error
- func RoomID(v int64) predicate.Game
- func RoomIDEQ(v int64) predicate.Game
- func RoomIDIn(vs ...int64) predicate.Game
- func RoomIDNEQ(v int64) predicate.Game
- func RoomIDNotIn(vs ...int64) predicate.Game
- func TheAssassinatedIdsIsNil() predicate.Game
- func TheAssassinatedIdsNotNil() predicate.Game
- func UpdatedAt(v time.Time) predicate.Game
- func UpdatedAtEQ(v time.Time) predicate.Game
- func UpdatedAtGT(v time.Time) predicate.Game
- func UpdatedAtGTE(v time.Time) predicate.Game
- func UpdatedAtIn(vs ...time.Time) predicate.Game
- func UpdatedAtLT(v time.Time) predicate.Game
- func UpdatedAtLTE(v time.Time) predicate.Game
- func UpdatedAtNEQ(v time.Time) predicate.Game
- func UpdatedAtNotIn(vs ...time.Time) predicate.Game
- func UpdatedBy(v int64) predicate.Game
- func UpdatedByEQ(v int64) predicate.Game
- func UpdatedByGT(v int64) predicate.Game
- func UpdatedByGTE(v int64) predicate.Game
- func UpdatedByIn(vs ...int64) predicate.Game
- func UpdatedByLT(v int64) predicate.Game
- func UpdatedByLTE(v int64) predicate.Game
- func UpdatedByNEQ(v int64) predicate.Game
- func UpdatedByNotIn(vs ...int64) predicate.Game
- func ValidColumn(column string) bool
- type Result
Constants ¶
const ( // Label holds the string label denoting the game type in the database. Label = "game" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedBy holds the string denoting the created_by field in the database. FieldCreatedBy = "created_by" // FieldUpdatedBy holds the string denoting the updated_by field in the database. FieldUpdatedBy = "updated_by" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldRoomID holds the string denoting the room_id field in the database. FieldRoomID = "room_id" // FieldResult holds the string denoting the result field in the database. FieldResult = "result" // FieldCapacity holds the string denoting the capacity field in the database. FieldCapacity = "capacity" // FieldTheAssassinatedIds holds the string denoting the the_assassinated_ids field in the database. FieldTheAssassinatedIds = "the_assassinated_ids" // FieldAssassinChance holds the string denoting the assassin_chance field in the database. FieldAssassinChance = "assassin_chance" // FieldClosed holds the string denoting the closed field in the database. FieldClosed = "closed" // EdgeGameUsers holds the string denoting the game_users edge name in mutations. EdgeGameUsers = "game_users" // EdgeMissions holds the string denoting the missions edge name in mutations. EdgeMissions = "missions" // EdgeRoom holds the string denoting the room edge name in mutations. EdgeRoom = "room" // Table holds the table name of the game in the database. Table = "games" // GameUsersTable is the table that holds the game_users relation/edge. GameUsersTable = "game_users" // GameUsersInverseTable is the table name for the GameUser entity. // It exists in this package in order to avoid circular dependency with the "gameuser" package. GameUsersInverseTable = "game_users" // GameUsersColumn is the table column denoting the game_users relation/edge. GameUsersColumn = "game_id" // MissionsTable is the table that holds the missions relation/edge. MissionsTable = "missions" // MissionsInverseTable is the table name for the Mission entity. // It exists in this package in order to avoid circular dependency with the "mission" package. MissionsInverseTable = "missions" // MissionsColumn is the table column denoting the missions relation/edge. MissionsColumn = "game_id" // RoomTable is the table that holds the room relation/edge. RoomTable = "games" // RoomInverseTable is the table name for the Room entity. // It exists in this package in order to avoid circular dependency with the "room" package. RoomInverseTable = "rooms" // RoomColumn is the table column denoting the room relation/edge. RoomColumn = "room_id" )
const DefaultResult = ResultNone
ResultNone is the default value of the Result enum.
Variables ¶
var ( // DefaultCreatedBy holds the default value on creation for the "created_by" field. DefaultCreatedBy int64 // DefaultUpdatedBy holds the default value on creation for the "updated_by" field. DefaultUpdatedBy int64 // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // DefaultDeletedAt holds the default value on creation for the "deleted_at" field. DefaultDeletedAt time.Time // DefaultCapacity holds the default value on creation for the "capacity" field. DefaultCapacity uint8 // DefaultAssassinChance holds the default value on creation for the "assassin_chance" field. DefaultAssassinChance uint8 // DefaultClosed holds the default value on creation for the "closed" field. DefaultClosed bool // DefaultID holds the default value on creation for the "id" field. DefaultID func() int64 )
var Columns = []string{ FieldID, FieldCreatedBy, FieldUpdatedBy, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldRoomID, FieldResult, FieldCapacity, FieldTheAssassinatedIds, FieldAssassinChance, FieldClosed, }
Columns holds all SQL columns for game fields.
Functions ¶
func AssassinChance ¶
AssassinChance applies equality check predicate on the "assassin_chance" field. It's identical to AssassinChanceEQ.
func AssassinChanceEQ ¶
AssassinChanceEQ applies the EQ predicate on the "assassin_chance" field.
func AssassinChanceGT ¶
AssassinChanceGT applies the GT predicate on the "assassin_chance" field.
func AssassinChanceGTE ¶
AssassinChanceGTE applies the GTE predicate on the "assassin_chance" field.
func AssassinChanceIn ¶
AssassinChanceIn applies the In predicate on the "assassin_chance" field.
func AssassinChanceLT ¶
AssassinChanceLT applies the LT predicate on the "assassin_chance" field.
func AssassinChanceLTE ¶
AssassinChanceLTE applies the LTE predicate on the "assassin_chance" field.
func AssassinChanceNEQ ¶
AssassinChanceNEQ applies the NEQ predicate on the "assassin_chance" field.
func AssassinChanceNotIn ¶
AssassinChanceNotIn applies the NotIn predicate on the "assassin_chance" field.
func Capacity ¶
Capacity applies equality check predicate on the "capacity" field. It's identical to CapacityEQ.
func CapacityEQ ¶
CapacityEQ applies the EQ predicate on the "capacity" field.
func CapacityGT ¶
CapacityGT applies the GT predicate on the "capacity" field.
func CapacityGTE ¶
CapacityGTE applies the GTE predicate on the "capacity" field.
func CapacityIn ¶
CapacityIn applies the In predicate on the "capacity" field.
func CapacityLT ¶
CapacityLT applies the LT predicate on the "capacity" field.
func CapacityLTE ¶
CapacityLTE applies the LTE predicate on the "capacity" field.
func CapacityNEQ ¶
CapacityNEQ applies the NEQ predicate on the "capacity" field.
func CapacityNotIn ¶
CapacityNotIn applies the NotIn predicate on the "capacity" field.
func Closed ¶
Closed applies equality check predicate on the "closed" field. It's identical to ClosedEQ.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedBy ¶
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByEQ ¶
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByGT ¶
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByIn ¶
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByLT ¶
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func HasGameUsers ¶
HasGameUsers applies the HasEdge predicate on the "game_users" edge.
func HasGameUsersWith ¶
HasGameUsersWith applies the HasEdge predicate on the "game_users" edge with a given conditions (other predicates).
func HasMissions ¶
HasMissions applies the HasEdge predicate on the "missions" edge.
func HasMissionsWith ¶
HasMissionsWith applies the HasEdge predicate on the "missions" edge with a given conditions (other predicates).
func HasRoomWith ¶
HasRoomWith applies the HasEdge predicate on the "room" edge with a given conditions (other predicates).
func ResultNotIn ¶
ResultNotIn applies the NotIn predicate on the "result" field.
func ResultValidator ¶
ResultValidator is a validator for the "result" field enum values. It is called by the builders before save.
func RoomID ¶
RoomID applies equality check predicate on the "room_id" field. It's identical to RoomIDEQ.
func RoomIDNotIn ¶
RoomIDNotIn applies the NotIn predicate on the "room_id" field.
func TheAssassinatedIdsIsNil ¶
TheAssassinatedIdsIsNil applies the IsNil predicate on the "the_assassinated_ids" field.
func TheAssassinatedIdsNotNil ¶
TheAssassinatedIdsNotNil applies the NotNil predicate on the "the_assassinated_ids" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedBy ¶
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByEQ ¶
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByGT ¶
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByIn ¶
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByLT ¶
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type Result ¶
type Result string
Result defines the type for the "result" enum field.
const ( ResultNone Result = "none" ResultBlue Result = "blue" ResultRed Result = "red" ResultAssassination Result = "assassination" ResultHand Result = "hand" )
Result values.
func (Result) MarshalGQL ¶
MarshalGQL implements graphql.Marshaler interface.
func (*Result) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Unmarshaler interface.