mission

package
v0.0.0-...-214d0a7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const DefaultStatus = StatusPicking

StatusPicking is the default value of the Status enum.

Variables

View Source
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
)

Columns holds all SQL columns for mission fields.

Functions

func And

func And(predicates ...predicate.Mission) predicate.Mission

And groups predicates with the AND operator between them.

func Capacity

func Capacity(v uint8) predicate.Mission

Capacity applies equality check predicate on the "capacity" field. It's identical to CapacityEQ.

func CapacityEQ

func CapacityEQ(v uint8) predicate.Mission

CapacityEQ applies the EQ predicate on the "capacity" field.

func CapacityGT

func CapacityGT(v uint8) predicate.Mission

CapacityGT applies the GT predicate on the "capacity" field.

func CapacityGTE

func CapacityGTE(v uint8) predicate.Mission

CapacityGTE applies the GTE predicate on the "capacity" field.

func CapacityIn

func CapacityIn(vs ...uint8) predicate.Mission

CapacityIn applies the In predicate on the "capacity" field.

func CapacityLT

func CapacityLT(v uint8) predicate.Mission

CapacityLT applies the LT predicate on the "capacity" field.

func CapacityLTE

func CapacityLTE(v uint8) predicate.Mission

CapacityLTE applies the LTE predicate on the "capacity" field.

func CapacityNEQ

func CapacityNEQ(v uint8) predicate.Mission

CapacityNEQ applies the NEQ predicate on the "capacity" field.

func CapacityNotIn

func CapacityNotIn(vs ...uint8) predicate.Mission

CapacityNotIn applies the NotIn predicate on the "capacity" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Mission

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Mission

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Mission

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Mission

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Mission

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Mission

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Mission

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Mission

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Mission

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func CreatedBy

func CreatedBy(v int64) predicate.Mission

CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.

func CreatedByEQ

func CreatedByEQ(v int64) predicate.Mission

CreatedByEQ applies the EQ predicate on the "created_by" field.

func CreatedByGT

func CreatedByGT(v int64) predicate.Mission

CreatedByGT applies the GT predicate on the "created_by" field.

func CreatedByGTE

func CreatedByGTE(v int64) predicate.Mission

CreatedByGTE applies the GTE predicate on the "created_by" field.

func CreatedByIn

func CreatedByIn(vs ...int64) predicate.Mission

CreatedByIn applies the In predicate on the "created_by" field.

func CreatedByLT

func CreatedByLT(v int64) predicate.Mission

CreatedByLT applies the LT predicate on the "created_by" field.

func CreatedByLTE

func CreatedByLTE(v int64) predicate.Mission

CreatedByLTE applies the LTE predicate on the "created_by" field.

func CreatedByNEQ

func CreatedByNEQ(v int64) predicate.Mission

CreatedByNEQ applies the NEQ predicate on the "created_by" field.

func CreatedByNotIn

func CreatedByNotIn(vs ...int64) predicate.Mission

CreatedByNotIn applies the NotIn predicate on the "created_by" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.Mission

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Mission

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Mission

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Mission

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.Mission

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Mission

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Mission

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Mission

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.Mission

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func Failed

func Failed(v bool) predicate.Mission

Failed applies equality check predicate on the "failed" field. It's identical to FailedEQ.

func FailedEQ

func FailedEQ(v bool) predicate.Mission

FailedEQ applies the EQ predicate on the "failed" field.

func FailedNEQ

func FailedNEQ(v bool) predicate.Mission

FailedNEQ applies the NEQ predicate on the "failed" field.

func GameID

func GameID(v int64) predicate.Mission

GameID applies equality check predicate on the "game_id" field. It's identical to GameIDEQ.

func GameIDEQ

func GameIDEQ(v int64) predicate.Mission

GameIDEQ applies the EQ predicate on the "game_id" field.

func GameIDIn

func GameIDIn(vs ...int64) predicate.Mission

GameIDIn applies the In predicate on the "game_id" field.

func GameIDNEQ

func GameIDNEQ(v int64) predicate.Mission

GameIDNEQ applies the NEQ predicate on the "game_id" field.

func GameIDNotIn

func GameIDNotIn(vs ...int64) predicate.Mission

GameIDNotIn applies the NotIn predicate on the "game_id" field.

func HasGame

func HasGame() predicate.Mission

HasGame applies the HasEdge predicate on the "game" edge.

func HasGameWith

func HasGameWith(preds ...predicate.Game) predicate.Mission

HasGameWith applies the HasEdge predicate on the "game" edge with a given conditions (other predicates).

func HasSquads

func HasSquads() predicate.Mission

HasSquads applies the HasEdge predicate on the "squads" edge.

func HasSquadsWith

func HasSquadsWith(preds ...predicate.Squad) predicate.Mission

HasSquadsWith applies the HasEdge predicate on the "squads" edge with a given conditions (other predicates).

func HasVotes

func HasVotes() predicate.Mission

HasVotes applies the HasEdge predicate on the "votes" edge.

func HasVotesWith

func HasVotesWith(preds ...predicate.Vote) predicate.Mission

HasVotesWith applies the HasEdge predicate on the "votes" edge with a given conditions (other predicates).

func ID

func ID(id int64) predicate.Mission

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.Mission

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.Mission

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.Mission

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int64) predicate.Mission

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.Mission

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.Mission

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.Mission

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int64) predicate.Mission

IDNotIn applies the NotIn predicate on the ID field.

func LeaderID

func LeaderID(v int64) predicate.Mission

LeaderID applies equality check predicate on the "leader_id" field. It's identical to LeaderIDEQ.

func LeaderIDEQ

func LeaderIDEQ(v int64) predicate.Mission

LeaderIDEQ applies the EQ predicate on the "leader_id" field.

func LeaderIDGT

func LeaderIDGT(v int64) predicate.Mission

LeaderIDGT applies the GT predicate on the "leader_id" field.

func LeaderIDGTE

func LeaderIDGTE(v int64) predicate.Mission

LeaderIDGTE applies the GTE predicate on the "leader_id" field.

func LeaderIDIn

func LeaderIDIn(vs ...int64) predicate.Mission

LeaderIDIn applies the In predicate on the "leader_id" field.

func LeaderIDLT

func LeaderIDLT(v int64) predicate.Mission

LeaderIDLT applies the LT predicate on the "leader_id" field.

func LeaderIDLTE

func LeaderIDLTE(v int64) predicate.Mission

LeaderIDLTE applies the LTE predicate on the "leader_id" field.

func LeaderIDNEQ

func LeaderIDNEQ(v int64) predicate.Mission

LeaderIDNEQ applies the NEQ predicate on the "leader_id" field.

func LeaderIDNotIn

func LeaderIDNotIn(vs ...int64) predicate.Mission

LeaderIDNotIn applies the NotIn predicate on the "leader_id" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Mission) predicate.Mission

Or groups predicates with the OR operator between them.

func Protected

func Protected(v bool) predicate.Mission

Protected applies equality check predicate on the "protected" field. It's identical to ProtectedEQ.

func ProtectedEQ

func ProtectedEQ(v bool) predicate.Mission

ProtectedEQ applies the EQ predicate on the "protected" field.

func ProtectedNEQ

func ProtectedNEQ(v bool) predicate.Mission

ProtectedNEQ applies the NEQ predicate on the "protected" field.

func Sequence

func Sequence(v uint8) predicate.Mission

Sequence applies equality check predicate on the "sequence" field. It's identical to SequenceEQ.

func SequenceEQ

func SequenceEQ(v uint8) predicate.Mission

SequenceEQ applies the EQ predicate on the "sequence" field.

func SequenceGT

func SequenceGT(v uint8) predicate.Mission

SequenceGT applies the GT predicate on the "sequence" field.

func SequenceGTE

func SequenceGTE(v uint8) predicate.Mission

SequenceGTE applies the GTE predicate on the "sequence" field.

func SequenceIn

func SequenceIn(vs ...uint8) predicate.Mission

SequenceIn applies the In predicate on the "sequence" field.

func SequenceLT

func SequenceLT(v uint8) predicate.Mission

SequenceLT applies the LT predicate on the "sequence" field.

func SequenceLTE

func SequenceLTE(v uint8) predicate.Mission

SequenceLTE applies the LTE predicate on the "sequence" field.

func SequenceNEQ

func SequenceNEQ(v uint8) predicate.Mission

SequenceNEQ applies the NEQ predicate on the "sequence" field.

func SequenceNotIn

func SequenceNotIn(vs ...uint8) predicate.Mission

SequenceNotIn applies the NotIn predicate on the "sequence" field.

func StatusEQ

func StatusEQ(v Status) predicate.Mission

StatusEQ applies the EQ predicate on the "status" field.

func StatusIn

func StatusIn(vs ...Status) predicate.Mission

StatusIn applies the In predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v Status) predicate.Mission

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...Status) predicate.Mission

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusValidator

func StatusValidator(s Status) error

StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Mission

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Mission

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Mission

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Mission

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Mission

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Mission

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Mission

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Mission

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Mission

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UpdatedBy

func UpdatedBy(v int64) predicate.Mission

UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.

func UpdatedByEQ

func UpdatedByEQ(v int64) predicate.Mission

UpdatedByEQ applies the EQ predicate on the "updated_by" field.

func UpdatedByGT

func UpdatedByGT(v int64) predicate.Mission

UpdatedByGT applies the GT predicate on the "updated_by" field.

func UpdatedByGTE

func UpdatedByGTE(v int64) predicate.Mission

UpdatedByGTE applies the GTE predicate on the "updated_by" field.

func UpdatedByIn

func UpdatedByIn(vs ...int64) predicate.Mission

UpdatedByIn applies the In predicate on the "updated_by" field.

func UpdatedByLT

func UpdatedByLT(v int64) predicate.Mission

UpdatedByLT applies the LT predicate on the "updated_by" field.

func UpdatedByLTE

func UpdatedByLTE(v int64) predicate.Mission

UpdatedByLTE applies the LTE predicate on the "updated_by" field.

func UpdatedByNEQ

func UpdatedByNEQ(v int64) predicate.Mission

UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.

func UpdatedByNotIn

func UpdatedByNotIn(vs ...int64) predicate.Mission

UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.

func ValidColumn

func ValidColumn(column string) bool

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

func (e Status) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (Status) String

func (s Status) String() string

func (*Status) UnmarshalGQL

func (e *Status) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL