Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Mission) predicate.Mission
- func Capacity(v uint8) predicate.Mission
- func CapacityEQ(v uint8) predicate.Mission
- func CapacityGT(v uint8) predicate.Mission
- func CapacityGTE(v uint8) predicate.Mission
- func CapacityIn(vs ...uint8) predicate.Mission
- func CapacityLT(v uint8) predicate.Mission
- func CapacityLTE(v uint8) predicate.Mission
- func CapacityNEQ(v uint8) predicate.Mission
- func CapacityNotIn(vs ...uint8) predicate.Mission
- func CreatedAt(v time.Time) predicate.Mission
- func CreatedAtEQ(v time.Time) predicate.Mission
- func CreatedAtGT(v time.Time) predicate.Mission
- func CreatedAtGTE(v time.Time) predicate.Mission
- func CreatedAtIn(vs ...time.Time) predicate.Mission
- func CreatedAtLT(v time.Time) predicate.Mission
- func CreatedAtLTE(v time.Time) predicate.Mission
- func CreatedAtNEQ(v time.Time) predicate.Mission
- func CreatedAtNotIn(vs ...time.Time) predicate.Mission
- func CreatedBy(v int64) predicate.Mission
- func CreatedByEQ(v int64) predicate.Mission
- func CreatedByGT(v int64) predicate.Mission
- func CreatedByGTE(v int64) predicate.Mission
- func CreatedByIn(vs ...int64) predicate.Mission
- func CreatedByLT(v int64) predicate.Mission
- func CreatedByLTE(v int64) predicate.Mission
- func CreatedByNEQ(v int64) predicate.Mission
- func CreatedByNotIn(vs ...int64) predicate.Mission
- func DeletedAt(v time.Time) predicate.Mission
- func DeletedAtEQ(v time.Time) predicate.Mission
- func DeletedAtGT(v time.Time) predicate.Mission
- func DeletedAtGTE(v time.Time) predicate.Mission
- func DeletedAtIn(vs ...time.Time) predicate.Mission
- func DeletedAtLT(v time.Time) predicate.Mission
- func DeletedAtLTE(v time.Time) predicate.Mission
- func DeletedAtNEQ(v time.Time) predicate.Mission
- func DeletedAtNotIn(vs ...time.Time) predicate.Mission
- func Failed(v bool) predicate.Mission
- func FailedEQ(v bool) predicate.Mission
- func FailedNEQ(v bool) predicate.Mission
- func GameID(v int64) predicate.Mission
- func GameIDEQ(v int64) predicate.Mission
- func GameIDIn(vs ...int64) predicate.Mission
- func GameIDNEQ(v int64) predicate.Mission
- func GameIDNotIn(vs ...int64) predicate.Mission
- func HasGame() predicate.Mission
- func HasGameWith(preds ...predicate.Game) predicate.Mission
- func HasSquads() predicate.Mission
- func HasSquadsWith(preds ...predicate.Squad) predicate.Mission
- func HasVotes() predicate.Mission
- func HasVotesWith(preds ...predicate.Vote) predicate.Mission
- func ID(id int64) predicate.Mission
- func IDEQ(id int64) predicate.Mission
- func IDGT(id int64) predicate.Mission
- func IDGTE(id int64) predicate.Mission
- func IDIn(ids ...int64) predicate.Mission
- func IDLT(id int64) predicate.Mission
- func IDLTE(id int64) predicate.Mission
- func IDNEQ(id int64) predicate.Mission
- func IDNotIn(ids ...int64) predicate.Mission
- func LeaderID(v int64) predicate.Mission
- func LeaderIDEQ(v int64) predicate.Mission
- func LeaderIDGT(v int64) predicate.Mission
- func LeaderIDGTE(v int64) predicate.Mission
- func LeaderIDIn(vs ...int64) predicate.Mission
- func LeaderIDLT(v int64) predicate.Mission
- func LeaderIDLTE(v int64) predicate.Mission
- func LeaderIDNEQ(v int64) predicate.Mission
- func LeaderIDNotIn(vs ...int64) predicate.Mission
- func Not(p predicate.Mission) predicate.Mission
- func Or(predicates ...predicate.Mission) predicate.Mission
- func Protected(v bool) predicate.Mission
- func ProtectedEQ(v bool) predicate.Mission
- func ProtectedNEQ(v bool) predicate.Mission
- func Sequence(v uint8) predicate.Mission
- func SequenceEQ(v uint8) predicate.Mission
- func SequenceGT(v uint8) predicate.Mission
- func SequenceGTE(v uint8) predicate.Mission
- func SequenceIn(vs ...uint8) predicate.Mission
- func SequenceLT(v uint8) predicate.Mission
- func SequenceLTE(v uint8) predicate.Mission
- func SequenceNEQ(v uint8) predicate.Mission
- func SequenceNotIn(vs ...uint8) predicate.Mission
- func StatusEQ(v Status) predicate.Mission
- func StatusIn(vs ...Status) predicate.Mission
- func StatusNEQ(v Status) predicate.Mission
- func StatusNotIn(vs ...Status) predicate.Mission
- func StatusValidator(s Status) error
- func UpdatedAt(v time.Time) predicate.Mission
- func UpdatedAtEQ(v time.Time) predicate.Mission
- func UpdatedAtGT(v time.Time) predicate.Mission
- func UpdatedAtGTE(v time.Time) predicate.Mission
- func UpdatedAtIn(vs ...time.Time) predicate.Mission
- func UpdatedAtLT(v time.Time) predicate.Mission
- func UpdatedAtLTE(v time.Time) predicate.Mission
- func UpdatedAtNEQ(v time.Time) predicate.Mission
- func UpdatedAtNotIn(vs ...time.Time) predicate.Mission
- func UpdatedBy(v int64) predicate.Mission
- func UpdatedByEQ(v int64) predicate.Mission
- func UpdatedByGT(v int64) predicate.Mission
- func UpdatedByGTE(v int64) predicate.Mission
- func UpdatedByIn(vs ...int64) predicate.Mission
- func UpdatedByLT(v int64) predicate.Mission
- func UpdatedByLTE(v int64) predicate.Mission
- func UpdatedByNEQ(v int64) predicate.Mission
- func UpdatedByNotIn(vs ...int64) predicate.Mission
- func ValidColumn(column string) bool
- type Status
Constants ¶
const ( // Label holds the string label denoting the mission type in the database. Label = "mission" // 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" // FieldSequence holds the string denoting the sequence field in the database. FieldSequence = "sequence" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldFailed holds the string denoting the failed field in the database. FieldFailed = "failed" // FieldGameID holds the string denoting the game_id field in the database. FieldGameID = "game_id" // FieldCapacity holds the string denoting the capacity field in the database. FieldCapacity = "capacity" // FieldLeaderID holds the string denoting the leader_id field in the database. FieldLeaderID = "leader_id" // FieldProtected holds the string denoting the protected field in the database. FieldProtected = "protected" // EdgeGame holds the string denoting the game edge name in mutations. EdgeGame = "game" // EdgeSquads holds the string denoting the squads edge name in mutations. EdgeSquads = "squads" // EdgeVotes holds the string denoting the votes edge name in mutations. EdgeVotes = "votes" // Table holds the table name of the mission in the database. Table = "missions" // GameTable is the table that holds the game relation/edge. GameTable = "missions" // GameInverseTable is the table name for the Game entity. // It exists in this package in order to avoid circular dependency with the "game" package. GameInverseTable = "games" // GameColumn is the table column denoting the game relation/edge. GameColumn = "game_id" // SquadsTable is the table that holds the squads relation/edge. SquadsTable = "squads" // SquadsInverseTable is the table name for the Squad entity. // It exists in this package in order to avoid circular dependency with the "squad" package. SquadsInverseTable = "squads" // SquadsColumn is the table column denoting the squads relation/edge. SquadsColumn = "mission_id" // VotesTable is the table that holds the votes relation/edge. VotesTable = "votes" // VotesInverseTable is the table name for the Vote entity. // It exists in this package in order to avoid circular dependency with the "vote" package. VotesInverseTable = "votes" // VotesColumn is the table column denoting the votes relation/edge. VotesColumn = "mission_id" )
const DefaultStatus = StatusPicking
StatusPicking is the default value of the Status 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 // SequenceValidator is a validator for the "sequence" field. It is called by the builders before save. SequenceValidator func(uint8) error // DefaultFailed holds the default value on creation for the "failed" field. DefaultFailed bool // DefaultCapacity holds the default value on creation for the "capacity" field. DefaultCapacity uint8 // DefaultLeaderID holds the default value on creation for the "leader_id" field. DefaultLeaderID int64 // DefaultProtected holds the default value on creation for the "protected" field. DefaultProtected bool // DefaultID holds the default value on creation for the "id" field. DefaultID func() int64 )
var Columns = []string{ FieldID, FieldCreatedBy, FieldUpdatedBy, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldSequence, FieldStatus, FieldFailed, FieldGameID, FieldCapacity, FieldLeaderID, FieldProtected, }
Columns holds all SQL columns for mission fields.
Functions ¶
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 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 Failed ¶
Failed applies equality check predicate on the "failed" field. It's identical to FailedEQ.
func GameID ¶
GameID applies equality check predicate on the "game_id" field. It's identical to GameIDEQ.
func GameIDNotIn ¶
GameIDNotIn applies the NotIn predicate on the "game_id" field.
func HasGameWith ¶
HasGameWith applies the HasEdge predicate on the "game" edge with a given conditions (other predicates).
func HasSquadsWith ¶
HasSquadsWith applies the HasEdge predicate on the "squads" edge with a given conditions (other predicates).
func HasVotesWith ¶
HasVotesWith applies the HasEdge predicate on the "votes" edge with a given conditions (other predicates).
func LeaderID ¶
LeaderID applies equality check predicate on the "leader_id" field. It's identical to LeaderIDEQ.
func LeaderIDEQ ¶
LeaderIDEQ applies the EQ predicate on the "leader_id" field.
func LeaderIDGT ¶
LeaderIDGT applies the GT predicate on the "leader_id" field.
func LeaderIDGTE ¶
LeaderIDGTE applies the GTE predicate on the "leader_id" field.
func LeaderIDIn ¶
LeaderIDIn applies the In predicate on the "leader_id" field.
func LeaderIDLT ¶
LeaderIDLT applies the LT predicate on the "leader_id" field.
func LeaderIDLTE ¶
LeaderIDLTE applies the LTE predicate on the "leader_id" field.
func LeaderIDNEQ ¶
LeaderIDNEQ applies the NEQ predicate on the "leader_id" field.
func LeaderIDNotIn ¶
LeaderIDNotIn applies the NotIn predicate on the "leader_id" field.
func Protected ¶
Protected applies equality check predicate on the "protected" field. It's identical to ProtectedEQ.
func ProtectedEQ ¶
ProtectedEQ applies the EQ predicate on the "protected" field.
func ProtectedNEQ ¶
ProtectedNEQ applies the NEQ predicate on the "protected" field.
func Sequence ¶
Sequence applies equality check predicate on the "sequence" field. It's identical to SequenceEQ.
func SequenceEQ ¶
SequenceEQ applies the EQ predicate on the "sequence" field.
func SequenceGT ¶
SequenceGT applies the GT predicate on the "sequence" field.
func SequenceGTE ¶
SequenceGTE applies the GTE predicate on the "sequence" field.
func SequenceIn ¶
SequenceIn applies the In predicate on the "sequence" field.
func SequenceLT ¶
SequenceLT applies the LT predicate on the "sequence" field.
func SequenceLTE ¶
SequenceLTE applies the LTE predicate on the "sequence" field.
func SequenceNEQ ¶
SequenceNEQ applies the NEQ predicate on the "sequence" field.
func SequenceNotIn ¶
SequenceNotIn applies the NotIn predicate on the "sequence" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusValidator ¶
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
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 Status ¶
type Status string
Status defines the type for the "status" enum field.
const ( StatusPicking Status = "picking" StatusVoting Status = "voting" StatusActing Status = "acting" StatusClosed Status = "closed" StatusDelayed Status = "delayed" )
Status values.
func (Status) MarshalGQL ¶
MarshalGQL implements graphql.Marshaler interface.
func (*Status) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Unmarshaler interface.