graphql

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: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknownType  = errors.New("unknown type")
	ErrTypeNotFound = errors.New("type not found")
)

Functions

func GetUserAtResolver

func GetUserAtResolver(ctx context.Context, userID int64) (*model.User, error)

func NewExecutableSchema

func NewExecutableSchema(cfg Config) graphql.ExecutableSchema

NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.

func NewSchema

func NewSchema(client *ent.Client) graphql.ExecutableSchema

Types

type CardResolver

type CardResolver interface {
	ID(ctx context.Context, obj *ent.Card) (string, error)
	CreatedBy(ctx context.Context, obj *ent.Card) (string, error)
	UpdatedBy(ctx context.Context, obj *ent.Card) (string, error)
}

type CardWhereInputResolver

type CardWhereInputResolver interface {
	ID(ctx context.Context, obj *ent.CardWhereInput, data *string) error
	IDNeq(ctx context.Context, obj *ent.CardWhereInput, data *string) error
	IDIn(ctx context.Context, obj *ent.CardWhereInput, data []string) error
	IDNotIn(ctx context.Context, obj *ent.CardWhereInput, data []string) error
	IDGt(ctx context.Context, obj *ent.CardWhereInput, data *string) error
	IDGte(ctx context.Context, obj *ent.CardWhereInput, data *string) error
	IDLt(ctx context.Context, obj *ent.CardWhereInput, data *string) error
	IDLte(ctx context.Context, obj *ent.CardWhereInput, data *string) error
	CreatedBy(ctx context.Context, obj *ent.CardWhereInput, data *string) error
	CreatedByNeq(ctx context.Context, obj *ent.CardWhereInput, data *string) error
	CreatedByIn(ctx context.Context, obj *ent.CardWhereInput, data []string) error
	CreatedByNotIn(ctx context.Context, obj *ent.CardWhereInput, data []string) error
	CreatedByGt(ctx context.Context, obj *ent.CardWhereInput, data *string) error
	CreatedByGte(ctx context.Context, obj *ent.CardWhereInput, data *string) error
	CreatedByLt(ctx context.Context, obj *ent.CardWhereInput, data *string) error
	CreatedByLte(ctx context.Context, obj *ent.CardWhereInput, data *string) error
	UpdatedBy(ctx context.Context, obj *ent.CardWhereInput, data *string) error
	UpdatedByNeq(ctx context.Context, obj *ent.CardWhereInput, data *string) error
	UpdatedByIn(ctx context.Context, obj *ent.CardWhereInput, data []string) error
	UpdatedByNotIn(ctx context.Context, obj *ent.CardWhereInput, data []string) error
	UpdatedByGt(ctx context.Context, obj *ent.CardWhereInput, data *string) error
	UpdatedByGte(ctx context.Context, obj *ent.CardWhereInput, data *string) error
	UpdatedByLt(ctx context.Context, obj *ent.CardWhereInput, data *string) error
	UpdatedByLte(ctx context.Context, obj *ent.CardWhereInput, data *string) error
}

type ComplexityRoot

type ComplexityRoot struct {
	AssassinInfo struct {
		TempPickedIDs      func(childComplexity int) int
		TheAssassinatedIDs func(childComplexity int) int
	}

	Card struct {
		CreatedAt func(childComplexity int) int
		CreatedBy func(childComplexity int) int
		DeletedAt func(childComplexity int) int
		GameUsers func(childComplexity int) int
		ID        func(childComplexity int) int
		Name      func(childComplexity int) int
		Red       func(childComplexity int) int
		Role      func(childComplexity int) int
		Tale      func(childComplexity int) int
		UpdatedAt func(childComplexity int) int
		UpdatedBy func(childComplexity int) int
	}

	Game struct {
		AssassinChance     func(childComplexity int) int
		Capacity           func(childComplexity int) int
		Closed             func(childComplexity int) int
		CreatedAt          func(childComplexity int) int
		CreatedBy          func(childComplexity int) int
		DeletedAt          func(childComplexity int) int
		GameUsers          func(childComplexity int) int
		ID                 func(childComplexity int) int
		Missions           func(childComplexity int) int
		Result             func(childComplexity int) int
		Room               func(childComplexity int) int
		RoomID             func(childComplexity int) int
		TheAssassinatedIds func(childComplexity int) int
		UpdatedAt          func(childComplexity int) int
		UpdatedBy          func(childComplexity int) int
	}

	GameUser struct {
		Card      func(childComplexity int) int
		CardID    func(childComplexity int) int
		CreatedAt func(childComplexity int) int
		CreatedBy func(childComplexity int) int
		DeletedAt func(childComplexity int) int
		Exited    func(childComplexity int) int
		Game      func(childComplexity int) int
		GameID    func(childComplexity int) int
		ID        func(childComplexity int) int
		Number    func(childComplexity int) int
		UpdatedAt func(childComplexity int) int
		UpdatedBy func(childComplexity int) int
		User      func(childComplexity int) int
		UserID    func(childComplexity int) int
	}

	Mission struct {
		Capacity  func(childComplexity int) int
		CreatedAt func(childComplexity int) int
		CreatedBy func(childComplexity int) int
		DeletedAt func(childComplexity int) int
		Failed    func(childComplexity int) int
		Game      func(childComplexity int) int
		GameID    func(childComplexity int) int
		ID        func(childComplexity int) int
		LeaderID  func(childComplexity int) int
		Protected func(childComplexity int) int
		Sequence  func(childComplexity int) int
		Squads    func(childComplexity int) int
		Status    func(childComplexity int) int
		UpdatedAt func(childComplexity int) int
		UpdatedBy func(childComplexity int) int
		Votes     func(childComplexity int) int
	}

	Mutation struct {
		Act                 func(childComplexity int, req model.ActRequest) int
		Assassinate         func(childComplexity int, req model.AssassinateRequest) int
		CloseRoom           func(childComplexity int, req model.RoomRequest) int
		CreateCard          func(childComplexity int, req ent.CreateCardInput) int
		CreateGame          func(childComplexity int, req model.CreateGameRequest) int
		CreateRoom          func(childComplexity int, req ent.CreateRoomInput) int
		ExitGame            func(childComplexity int, req model.GameUserRequest) int
		JoinRoom            func(childComplexity int, req ent.CreateRoomUserInput) int
		JoinRoomByShortCode func(childComplexity int, req model.JoinRoomInput) int
		LeaveRoom           func(childComplexity int, req ent.CreateRoomUserInput) int
		PickSquads          func(childComplexity int, req []*ent.CreateSquadInput) int
		ReentryEndedGame    func(childComplexity int, req model.GameUserRequest) int
		TempAssassinate     func(childComplexity int, req model.AssassinateRequest) int
		TempPickSquads      func(childComplexity int, req []*ent.CreateSquadInput) int
		TerminateGame       func(childComplexity int, req model.GameRequest) int
		Vote                func(childComplexity int, req model.VoteRequest) int
	}

	OtherView struct {
		Type   func(childComplexity int) int
		UserID func(childComplexity int) int
	}

	PageInfo struct {
		EndCursor       func(childComplexity int) int
		HasNextPage     func(childComplexity int) int
		HasPreviousPage func(childComplexity int) int
		StartCursor     func(childComplexity int) int
	}

	Query struct {
		Cards              func(childComplexity int) int
		GameUsers          func(childComplexity int) int
		Games              func(childComplexity int) int
		GetEndedGame       func(childComplexity int, req model.GameRequest) int
		GetGameUsersByGame func(childComplexity int, req model.GameRequest) int
		GetJoinedRoom      func(childComplexity int, req model.UserRequest) int
		GetOnesCardInGame  func(childComplexity int, req model.GameUserRequest) int
		GetSquadInMission  func(childComplexity int, req ent.SquadWhereInput) int
		GetVagueGameUsers  func(childComplexity int, req model.GameRequest) int
		GetVoteInMission   func(childComplexity int, req ent.VoteWhereInput) int
		Missions           func(childComplexity int) int
		Node               func(childComplexity int, id string) int
		Nodes              func(childComplexity int, ids []string) int
		Records            func(childComplexity int) int
		RoomUsers          func(childComplexity int) int
		Rooms              func(childComplexity int) int
		Squads             func(childComplexity int) int
		ViewOthersInGame   func(childComplexity int, req model.GameUserRequest) int
		Votes              func(childComplexity int) int
		// contains filtered or unexported fields
	}

	Record struct {
		CreatedAt func(childComplexity int) int
		CreatedBy func(childComplexity int) int
		DeletedAt func(childComplexity int) int
		ID        func(childComplexity int) int
		Room      func(childComplexity int) int
		RoomID    func(childComplexity int) int
		Score     func(childComplexity int) int
		UpdatedAt func(childComplexity int) int
		UpdatedBy func(childComplexity int) int
		UserID    func(childComplexity int) int
	}

	Room struct {
		Closed    func(childComplexity int) int
		CreatedAt func(childComplexity int) int
		CreatedBy func(childComplexity int) int
		DeletedAt func(childComplexity int) int
		GameOn    func(childComplexity int) int
		Games     func(childComplexity int) int
		ID        func(childComplexity int) int
		Name      func(childComplexity int) int
		Records   func(childComplexity int) int
		RoomUsers func(childComplexity int) int
		UpdatedAt func(childComplexity int) int
		UpdatedBy func(childComplexity int) int
	}

	RoomUser struct {
		CreatedAt func(childComplexity int) int
		CreatedBy func(childComplexity int) int
		DeletedAt func(childComplexity int) int
		Host      func(childComplexity int) int
		ID        func(childComplexity int) int
		Room      func(childComplexity int) int
		RoomID    func(childComplexity int) int
		UpdatedAt func(childComplexity int) int
		UpdatedBy func(childComplexity int) int
		User      func(childComplexity int) int
		UserID    func(childComplexity int) int
	}

	Squad struct {
		Acted     func(childComplexity int) int
		CreatedAt func(childComplexity int) int
		CreatedBy func(childComplexity int) int
		DeletedAt func(childComplexity int) int
		ID        func(childComplexity int) int
		Mission   func(childComplexity int) int
		MissionID func(childComplexity int) int
		Rat       func(childComplexity int) int
		UpdatedAt func(childComplexity int) int
		UpdatedBy func(childComplexity int) int
		User      func(childComplexity int) int
		UserID    func(childComplexity int) int
	}

	Subscription struct {
		GetAssassinationByGame func(childComplexity int, req model.GameRequest) int
		GetGame                func(childComplexity int, req model.GameRequest) int
		GetMissionsByGame      func(childComplexity int, req model.GameRequest) int
		GetRoomOngoingGame     func(childComplexity int, req model.RoomRequest) int
		GetRoomUsers           func(childComplexity int, req *model.RoomRequest) int
	}

	User struct {
		ID    func(childComplexity int) int
		Name  func(childComplexity int) int
		Phone func(childComplexity int) int
	}

	Vote struct {
		CreatedAt func(childComplexity int) int
		CreatedBy func(childComplexity int) int
		DeletedAt func(childComplexity int) int
		ID        func(childComplexity int) int
		Mission   func(childComplexity int) int
		MissionID func(childComplexity int) int
		Pass      func(childComplexity int) int
		UpdatedAt func(childComplexity int) int
		UpdatedBy func(childComplexity int) int
		User      func(childComplexity int) int
		UserID    func(childComplexity int) int
		Voted     func(childComplexity int) int
	}
	// contains filtered or unexported fields
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type CreateCardInputResolver

type CreateCardInputResolver interface {
	CreatedBy(ctx context.Context, obj *ent.CreateCardInput, data *string) error
	UpdatedBy(ctx context.Context, obj *ent.CreateCardInput, data *string) error

	GameUserIDs(ctx context.Context, obj *ent.CreateCardInput, data []string) error
}

type CreateGameInputResolver

type CreateGameInputResolver interface {
	CreatedBy(ctx context.Context, obj *ent.CreateGameInput, data *string) error
	UpdatedBy(ctx context.Context, obj *ent.CreateGameInput, data *string) error

	Capacity(ctx context.Context, obj *ent.CreateGameInput, data *int) error

	AssassinChance(ctx context.Context, obj *ent.CreateGameInput, data *int) error

	GameUserIDs(ctx context.Context, obj *ent.CreateGameInput, data []string) error
	MissionIDs(ctx context.Context, obj *ent.CreateGameInput, data []string) error
	RoomID(ctx context.Context, obj *ent.CreateGameInput, data string) error
}

type CreateGameUserInputResolver

type CreateGameUserInputResolver interface {
	CreatedBy(ctx context.Context, obj *ent.CreateGameUserInput, data *string) error
	UpdatedBy(ctx context.Context, obj *ent.CreateGameUserInput, data *string) error

	UserID(ctx context.Context, obj *ent.CreateGameUserInput, data string) error
	Number(ctx context.Context, obj *ent.CreateGameUserInput, data int) error

	GameID(ctx context.Context, obj *ent.CreateGameUserInput, data string) error
	CardID(ctx context.Context, obj *ent.CreateGameUserInput, data string) error
}

type CreateMissionInputResolver

type CreateMissionInputResolver interface {
	CreatedBy(ctx context.Context, obj *ent.CreateMissionInput, data *string) error
	UpdatedBy(ctx context.Context, obj *ent.CreateMissionInput, data *string) error

	Sequence(ctx context.Context, obj *ent.CreateMissionInput, data int) error

	Capacity(ctx context.Context, obj *ent.CreateMissionInput, data *int) error
	LeaderID(ctx context.Context, obj *ent.CreateMissionInput, data *string) error

	GameID(ctx context.Context, obj *ent.CreateMissionInput, data string) error
	SquadIDs(ctx context.Context, obj *ent.CreateMissionInput, data []string) error
	VoteIDs(ctx context.Context, obj *ent.CreateMissionInput, data []string) error
}

type CreateRecordInputResolver

type CreateRecordInputResolver interface {
	CreatedBy(ctx context.Context, obj *ent.CreateRecordInput, data *string) error
	UpdatedBy(ctx context.Context, obj *ent.CreateRecordInput, data *string) error

	UserID(ctx context.Context, obj *ent.CreateRecordInput, data string) error

	RoomID(ctx context.Context, obj *ent.CreateRecordInput, data string) error
}

type CreateRoomInputResolver

type CreateRoomInputResolver interface {
	CreatedBy(ctx context.Context, obj *ent.CreateRoomInput, data *string) error
	UpdatedBy(ctx context.Context, obj *ent.CreateRoomInput, data *string) error

	RoomUserIDs(ctx context.Context, obj *ent.CreateRoomInput, data []string) error
	GameIDs(ctx context.Context, obj *ent.CreateRoomInput, data []string) error
	RecordIDs(ctx context.Context, obj *ent.CreateRoomInput, data []string) error
}

type CreateRoomUserInputResolver

type CreateRoomUserInputResolver interface {
	CreatedBy(ctx context.Context, obj *ent.CreateRoomUserInput, data *string) error
	UpdatedBy(ctx context.Context, obj *ent.CreateRoomUserInput, data *string) error

	UserID(ctx context.Context, obj *ent.CreateRoomUserInput, data string) error

	RoomID(ctx context.Context, obj *ent.CreateRoomUserInput, data string) error
}

type CreateSquadInputResolver

type CreateSquadInputResolver interface {
	CreatedBy(ctx context.Context, obj *ent.CreateSquadInput, data *string) error
	UpdatedBy(ctx context.Context, obj *ent.CreateSquadInput, data *string) error

	UserID(ctx context.Context, obj *ent.CreateSquadInput, data string) error

	MissionID(ctx context.Context, obj *ent.CreateSquadInput, data string) error
}

type CreateVoteInputResolver

type CreateVoteInputResolver interface {
	CreatedBy(ctx context.Context, obj *ent.CreateVoteInput, data *string) error
	UpdatedBy(ctx context.Context, obj *ent.CreateVoteInput, data *string) error

	UserID(ctx context.Context, obj *ent.CreateVoteInput, data string) error

	MissionID(ctx context.Context, obj *ent.CreateVoteInput, data string) error
}

type DirectiveRoot

type DirectiveRoot struct {
}

type GameResolver

type GameResolver interface {
	ID(ctx context.Context, obj *ent.Game) (string, error)
	CreatedBy(ctx context.Context, obj *ent.Game) (string, error)
	UpdatedBy(ctx context.Context, obj *ent.Game) (string, error)

	RoomID(ctx context.Context, obj *ent.Game) (string, error)

	Capacity(ctx context.Context, obj *ent.Game) (int, error)

	AssassinChance(ctx context.Context, obj *ent.Game) (int, error)
}

type GameUserResolver

type GameUserResolver interface {
	ID(ctx context.Context, obj *ent.GameUser) (string, error)
	CreatedBy(ctx context.Context, obj *ent.GameUser) (string, error)
	UpdatedBy(ctx context.Context, obj *ent.GameUser) (string, error)

	UserID(ctx context.Context, obj *ent.GameUser) (string, error)
	GameID(ctx context.Context, obj *ent.GameUser) (string, error)
	CardID(ctx context.Context, obj *ent.GameUser) (string, error)
	Number(ctx context.Context, obj *ent.GameUser) (int, error)

	User(ctx context.Context, obj *ent.GameUser) (*model.User, error)
}

type GameUserWhereInputResolver

type GameUserWhereInputResolver interface {
	ID(ctx context.Context, obj *ent.GameUserWhereInput, data *string) error
	IDNeq(ctx context.Context, obj *ent.GameUserWhereInput, data *string) error
	IDIn(ctx context.Context, obj *ent.GameUserWhereInput, data []string) error
	IDNotIn(ctx context.Context, obj *ent.GameUserWhereInput, data []string) error
	IDGt(ctx context.Context, obj *ent.GameUserWhereInput, data *string) error
	IDGte(ctx context.Context, obj *ent.GameUserWhereInput, data *string) error
	IDLt(ctx context.Context, obj *ent.GameUserWhereInput, data *string) error
	IDLte(ctx context.Context, obj *ent.GameUserWhereInput, data *string) error
	CreatedBy(ctx context.Context, obj *ent.GameUserWhereInput, data *string) error
	CreatedByNeq(ctx context.Context, obj *ent.GameUserWhereInput, data *string) error
	CreatedByIn(ctx context.Context, obj *ent.GameUserWhereInput, data []string) error
	CreatedByNotIn(ctx context.Context, obj *ent.GameUserWhereInput, data []string) error
	CreatedByGt(ctx context.Context, obj *ent.GameUserWhereInput, data *string) error
	CreatedByGte(ctx context.Context, obj *ent.GameUserWhereInput, data *string) error
	CreatedByLt(ctx context.Context, obj *ent.GameUserWhereInput, data *string) error
	CreatedByLte(ctx context.Context, obj *ent.GameUserWhereInput, data *string) error
	UpdatedBy(ctx context.Context, obj *ent.GameUserWhereInput, data *string) error
	UpdatedByNeq(ctx context.Context, obj *ent.GameUserWhereInput, data *string) error
	UpdatedByIn(ctx context.Context, obj *ent.GameUserWhereInput, data []string) error
	UpdatedByNotIn(ctx context.Context, obj *ent.GameUserWhereInput, data []string) error
	UpdatedByGt(ctx context.Context, obj *ent.GameUserWhereInput, data *string) error
	UpdatedByGte(ctx context.Context, obj *ent.GameUserWhereInput, data *string) error
	UpdatedByLt(ctx context.Context, obj *ent.GameUserWhereInput, data *string) error
	UpdatedByLte(ctx context.Context, obj *ent.GameUserWhereInput, data *string) error

	UserID(ctx context.Context, obj *ent.GameUserWhereInput, data *string) error
	UserIDNeq(ctx context.Context, obj *ent.GameUserWhereInput, data *string) error
	UserIDIn(ctx context.Context, obj *ent.GameUserWhereInput, data []string) error
	UserIDNotIn(ctx context.Context, obj *ent.GameUserWhereInput, data []string) error
	UserIDGt(ctx context.Context, obj *ent.GameUserWhereInput, data *string) error
	UserIDGte(ctx context.Context, obj *ent.GameUserWhereInput, data *string) error
	UserIDLt(ctx context.Context, obj *ent.GameUserWhereInput, data *string) error
	UserIDLte(ctx context.Context, obj *ent.GameUserWhereInput, data *string) error
	GameID(ctx context.Context, obj *ent.GameUserWhereInput, data *string) error
	GameIDNeq(ctx context.Context, obj *ent.GameUserWhereInput, data *string) error
	GameIDIn(ctx context.Context, obj *ent.GameUserWhereInput, data []string) error
	GameIDNotIn(ctx context.Context, obj *ent.GameUserWhereInput, data []string) error
	CardID(ctx context.Context, obj *ent.GameUserWhereInput, data *string) error
	CardIDNeq(ctx context.Context, obj *ent.GameUserWhereInput, data *string) error
	CardIDIn(ctx context.Context, obj *ent.GameUserWhereInput, data []string) error
	CardIDNotIn(ctx context.Context, obj *ent.GameUserWhereInput, data []string) error
	Number(ctx context.Context, obj *ent.GameUserWhereInput, data *int) error
	NumberNeq(ctx context.Context, obj *ent.GameUserWhereInput, data *int) error
	NumberIn(ctx context.Context, obj *ent.GameUserWhereInput, data []int) error
	NumberNotIn(ctx context.Context, obj *ent.GameUserWhereInput, data []int) error
	NumberGt(ctx context.Context, obj *ent.GameUserWhereInput, data *int) error
	NumberGte(ctx context.Context, obj *ent.GameUserWhereInput, data *int) error
	NumberLt(ctx context.Context, obj *ent.GameUserWhereInput, data *int) error
	NumberLte(ctx context.Context, obj *ent.GameUserWhereInput, data *int) error
}

type GameWhereInputResolver

type GameWhereInputResolver interface {
	ID(ctx context.Context, obj *ent.GameWhereInput, data *string) error
	IDNeq(ctx context.Context, obj *ent.GameWhereInput, data *string) error
	IDIn(ctx context.Context, obj *ent.GameWhereInput, data []string) error
	IDNotIn(ctx context.Context, obj *ent.GameWhereInput, data []string) error
	IDGt(ctx context.Context, obj *ent.GameWhereInput, data *string) error
	IDGte(ctx context.Context, obj *ent.GameWhereInput, data *string) error
	IDLt(ctx context.Context, obj *ent.GameWhereInput, data *string) error
	IDLte(ctx context.Context, obj *ent.GameWhereInput, data *string) error
	CreatedBy(ctx context.Context, obj *ent.GameWhereInput, data *string) error
	CreatedByNeq(ctx context.Context, obj *ent.GameWhereInput, data *string) error
	CreatedByIn(ctx context.Context, obj *ent.GameWhereInput, data []string) error
	CreatedByNotIn(ctx context.Context, obj *ent.GameWhereInput, data []string) error
	CreatedByGt(ctx context.Context, obj *ent.GameWhereInput, data *string) error
	CreatedByGte(ctx context.Context, obj *ent.GameWhereInput, data *string) error
	CreatedByLt(ctx context.Context, obj *ent.GameWhereInput, data *string) error
	CreatedByLte(ctx context.Context, obj *ent.GameWhereInput, data *string) error
	UpdatedBy(ctx context.Context, obj *ent.GameWhereInput, data *string) error
	UpdatedByNeq(ctx context.Context, obj *ent.GameWhereInput, data *string) error
	UpdatedByIn(ctx context.Context, obj *ent.GameWhereInput, data []string) error
	UpdatedByNotIn(ctx context.Context, obj *ent.GameWhereInput, data []string) error
	UpdatedByGt(ctx context.Context, obj *ent.GameWhereInput, data *string) error
	UpdatedByGte(ctx context.Context, obj *ent.GameWhereInput, data *string) error
	UpdatedByLt(ctx context.Context, obj *ent.GameWhereInput, data *string) error
	UpdatedByLte(ctx context.Context, obj *ent.GameWhereInput, data *string) error

	RoomID(ctx context.Context, obj *ent.GameWhereInput, data *string) error
	RoomIDNeq(ctx context.Context, obj *ent.GameWhereInput, data *string) error
	RoomIDIn(ctx context.Context, obj *ent.GameWhereInput, data []string) error
	RoomIDNotIn(ctx context.Context, obj *ent.GameWhereInput, data []string) error

	Capacity(ctx context.Context, obj *ent.GameWhereInput, data *int) error
	CapacityNeq(ctx context.Context, obj *ent.GameWhereInput, data *int) error
	CapacityIn(ctx context.Context, obj *ent.GameWhereInput, data []int) error
	CapacityNotIn(ctx context.Context, obj *ent.GameWhereInput, data []int) error
	CapacityGt(ctx context.Context, obj *ent.GameWhereInput, data *int) error
	CapacityGte(ctx context.Context, obj *ent.GameWhereInput, data *int) error
	CapacityLt(ctx context.Context, obj *ent.GameWhereInput, data *int) error
	CapacityLte(ctx context.Context, obj *ent.GameWhereInput, data *int) error
	AssassinChance(ctx context.Context, obj *ent.GameWhereInput, data *int) error
	AssassinChanceNeq(ctx context.Context, obj *ent.GameWhereInput, data *int) error
	AssassinChanceIn(ctx context.Context, obj *ent.GameWhereInput, data []int) error
	AssassinChanceNotIn(ctx context.Context, obj *ent.GameWhereInput, data []int) error
	AssassinChanceGt(ctx context.Context, obj *ent.GameWhereInput, data *int) error
	AssassinChanceGte(ctx context.Context, obj *ent.GameWhereInput, data *int) error
	AssassinChanceLt(ctx context.Context, obj *ent.GameWhereInput, data *int) error
	AssassinChanceLte(ctx context.Context, obj *ent.GameWhereInput, data *int) error
}

type MissionResolver

type MissionResolver interface {
	ID(ctx context.Context, obj *ent.Mission) (string, error)
	CreatedBy(ctx context.Context, obj *ent.Mission) (string, error)
	UpdatedBy(ctx context.Context, obj *ent.Mission) (string, error)

	Sequence(ctx context.Context, obj *ent.Mission) (int, error)

	GameID(ctx context.Context, obj *ent.Mission) (string, error)
	Capacity(ctx context.Context, obj *ent.Mission) (int, error)
	LeaderID(ctx context.Context, obj *ent.Mission) (string, error)
}

type MissionWhereInputResolver

type MissionWhereInputResolver interface {
	ID(ctx context.Context, obj *ent.MissionWhereInput, data *string) error
	IDNeq(ctx context.Context, obj *ent.MissionWhereInput, data *string) error
	IDIn(ctx context.Context, obj *ent.MissionWhereInput, data []string) error
	IDNotIn(ctx context.Context, obj *ent.MissionWhereInput, data []string) error
	IDGt(ctx context.Context, obj *ent.MissionWhereInput, data *string) error
	IDGte(ctx context.Context, obj *ent.MissionWhereInput, data *string) error
	IDLt(ctx context.Context, obj *ent.MissionWhereInput, data *string) error
	IDLte(ctx context.Context, obj *ent.MissionWhereInput, data *string) error
	CreatedBy(ctx context.Context, obj *ent.MissionWhereInput, data *string) error
	CreatedByNeq(ctx context.Context, obj *ent.MissionWhereInput, data *string) error
	CreatedByIn(ctx context.Context, obj *ent.MissionWhereInput, data []string) error
	CreatedByNotIn(ctx context.Context, obj *ent.MissionWhereInput, data []string) error
	CreatedByGt(ctx context.Context, obj *ent.MissionWhereInput, data *string) error
	CreatedByGte(ctx context.Context, obj *ent.MissionWhereInput, data *string) error
	CreatedByLt(ctx context.Context, obj *ent.MissionWhereInput, data *string) error
	CreatedByLte(ctx context.Context, obj *ent.MissionWhereInput, data *string) error
	UpdatedBy(ctx context.Context, obj *ent.MissionWhereInput, data *string) error
	UpdatedByNeq(ctx context.Context, obj *ent.MissionWhereInput, data *string) error
	UpdatedByIn(ctx context.Context, obj *ent.MissionWhereInput, data []string) error
	UpdatedByNotIn(ctx context.Context, obj *ent.MissionWhereInput, data []string) error
	UpdatedByGt(ctx context.Context, obj *ent.MissionWhereInput, data *string) error
	UpdatedByGte(ctx context.Context, obj *ent.MissionWhereInput, data *string) error
	UpdatedByLt(ctx context.Context, obj *ent.MissionWhereInput, data *string) error
	UpdatedByLte(ctx context.Context, obj *ent.MissionWhereInput, data *string) error

	Sequence(ctx context.Context, obj *ent.MissionWhereInput, data *int) error
	SequenceNeq(ctx context.Context, obj *ent.MissionWhereInput, data *int) error
	SequenceIn(ctx context.Context, obj *ent.MissionWhereInput, data []int) error
	SequenceNotIn(ctx context.Context, obj *ent.MissionWhereInput, data []int) error
	SequenceGt(ctx context.Context, obj *ent.MissionWhereInput, data *int) error
	SequenceGte(ctx context.Context, obj *ent.MissionWhereInput, data *int) error
	SequenceLt(ctx context.Context, obj *ent.MissionWhereInput, data *int) error
	SequenceLte(ctx context.Context, obj *ent.MissionWhereInput, data *int) error

	GameID(ctx context.Context, obj *ent.MissionWhereInput, data *string) error
	GameIDNeq(ctx context.Context, obj *ent.MissionWhereInput, data *string) error
	GameIDIn(ctx context.Context, obj *ent.MissionWhereInput, data []string) error
	GameIDNotIn(ctx context.Context, obj *ent.MissionWhereInput, data []string) error
	Capacity(ctx context.Context, obj *ent.MissionWhereInput, data *int) error
	CapacityNeq(ctx context.Context, obj *ent.MissionWhereInput, data *int) error
	CapacityIn(ctx context.Context, obj *ent.MissionWhereInput, data []int) error
	CapacityNotIn(ctx context.Context, obj *ent.MissionWhereInput, data []int) error
	CapacityGt(ctx context.Context, obj *ent.MissionWhereInput, data *int) error
	CapacityGte(ctx context.Context, obj *ent.MissionWhereInput, data *int) error
	CapacityLt(ctx context.Context, obj *ent.MissionWhereInput, data *int) error
	CapacityLte(ctx context.Context, obj *ent.MissionWhereInput, data *int) error
	LeaderID(ctx context.Context, obj *ent.MissionWhereInput, data *string) error
	LeaderIDNeq(ctx context.Context, obj *ent.MissionWhereInput, data *string) error
	LeaderIDIn(ctx context.Context, obj *ent.MissionWhereInput, data []string) error
	LeaderIDNotIn(ctx context.Context, obj *ent.MissionWhereInput, data []string) error
	LeaderIDGt(ctx context.Context, obj *ent.MissionWhereInput, data *string) error
	LeaderIDGte(ctx context.Context, obj *ent.MissionWhereInput, data *string) error
	LeaderIDLt(ctx context.Context, obj *ent.MissionWhereInput, data *string) error
	LeaderIDLte(ctx context.Context, obj *ent.MissionWhereInput, data *string) error
}

type MutationResolver

type MutationResolver interface {
	CreateRoom(ctx context.Context, req ent.CreateRoomInput) (*ent.Room, error)
	JoinRoom(ctx context.Context, req ent.CreateRoomUserInput) (*ent.RoomUser, error)
	LeaveRoom(ctx context.Context, req ent.CreateRoomUserInput) (*ent.RoomUser, error)
	CloseRoom(ctx context.Context, req model.RoomRequest) (*ent.Room, error)
	CreateGame(ctx context.Context, req model.CreateGameRequest) (*ent.Game, error)
	CreateCard(ctx context.Context, req ent.CreateCardInput) (*ent.Card, error)
	TempPickSquads(ctx context.Context, req []*ent.CreateSquadInput) ([]string, error)
	PickSquads(ctx context.Context, req []*ent.CreateSquadInput) ([]*ent.Squad, error)
	Vote(ctx context.Context, req model.VoteRequest) (*ent.Vote, error)
	Act(ctx context.Context, req model.ActRequest) (*ent.Squad, error)
	TempAssassinate(ctx context.Context, req model.AssassinateRequest) ([]string, error)
	Assassinate(ctx context.Context, req model.AssassinateRequest) (*ent.Game, error)
	JoinRoomByShortCode(ctx context.Context, req model.JoinRoomInput) (*ent.RoomUser, error)
	TerminateGame(ctx context.Context, req model.GameRequest) (*ent.Game, error)
	ExitGame(ctx context.Context, req model.GameUserRequest) (*ent.GameUser, error)
	ReentryEndedGame(ctx context.Context, req model.GameUserRequest) (*ent.GameUser, error)
}

type QueryResolver

type QueryResolver interface {
	Node(ctx context.Context, id string) (ent.Noder, error)
	Nodes(ctx context.Context, ids []string) ([]ent.Noder, error)
	Cards(ctx context.Context) ([]*ent.Card, error)
	Games(ctx context.Context) ([]*ent.Game, error)
	GameUsers(ctx context.Context) ([]*ent.GameUser, error)
	Missions(ctx context.Context) ([]*ent.Mission, error)
	Records(ctx context.Context) ([]*ent.Record, error)
	Rooms(ctx context.Context) ([]*ent.Room, error)
	RoomUsers(ctx context.Context) ([]*ent.RoomUser, error)
	Squads(ctx context.Context) ([]*ent.Squad, error)
	Votes(ctx context.Context) ([]*ent.Vote, error)
	GetJoinedRoom(ctx context.Context, req model.UserRequest) (*ent.Room, error)
	GetVoteInMission(ctx context.Context, req ent.VoteWhereInput) (*ent.Vote, error)
	GetSquadInMission(ctx context.Context, req ent.SquadWhereInput) (*ent.Squad, error)
	GetEndedGame(ctx context.Context, req model.GameRequest) (*ent.Game, error)
	GetVagueGameUsers(ctx context.Context, req model.GameRequest) ([]*ent.GameUser, error)
	GetGameUsersByGame(ctx context.Context, req model.GameRequest) ([]*ent.GameUser, error)
	GetOnesCardInGame(ctx context.Context, req model.GameUserRequest) (*ent.Card, error)
	ViewOthersInGame(ctx context.Context, req model.GameUserRequest) ([]*model.OtherView, error)
}

type RecordResolver

type RecordResolver interface {
	ID(ctx context.Context, obj *ent.Record) (string, error)
	CreatedBy(ctx context.Context, obj *ent.Record) (string, error)
	UpdatedBy(ctx context.Context, obj *ent.Record) (string, error)

	UserID(ctx context.Context, obj *ent.Record) (string, error)
	RoomID(ctx context.Context, obj *ent.Record) (string, error)
}

type RecordWhereInputResolver

type RecordWhereInputResolver interface {
	ID(ctx context.Context, obj *ent.RecordWhereInput, data *string) error
	IDNeq(ctx context.Context, obj *ent.RecordWhereInput, data *string) error
	IDIn(ctx context.Context, obj *ent.RecordWhereInput, data []string) error
	IDNotIn(ctx context.Context, obj *ent.RecordWhereInput, data []string) error
	IDGt(ctx context.Context, obj *ent.RecordWhereInput, data *string) error
	IDGte(ctx context.Context, obj *ent.RecordWhereInput, data *string) error
	IDLt(ctx context.Context, obj *ent.RecordWhereInput, data *string) error
	IDLte(ctx context.Context, obj *ent.RecordWhereInput, data *string) error
	CreatedBy(ctx context.Context, obj *ent.RecordWhereInput, data *string) error
	CreatedByNeq(ctx context.Context, obj *ent.RecordWhereInput, data *string) error
	CreatedByIn(ctx context.Context, obj *ent.RecordWhereInput, data []string) error
	CreatedByNotIn(ctx context.Context, obj *ent.RecordWhereInput, data []string) error
	CreatedByGt(ctx context.Context, obj *ent.RecordWhereInput, data *string) error
	CreatedByGte(ctx context.Context, obj *ent.RecordWhereInput, data *string) error
	CreatedByLt(ctx context.Context, obj *ent.RecordWhereInput, data *string) error
	CreatedByLte(ctx context.Context, obj *ent.RecordWhereInput, data *string) error
	UpdatedBy(ctx context.Context, obj *ent.RecordWhereInput, data *string) error
	UpdatedByNeq(ctx context.Context, obj *ent.RecordWhereInput, data *string) error
	UpdatedByIn(ctx context.Context, obj *ent.RecordWhereInput, data []string) error
	UpdatedByNotIn(ctx context.Context, obj *ent.RecordWhereInput, data []string) error
	UpdatedByGt(ctx context.Context, obj *ent.RecordWhereInput, data *string) error
	UpdatedByGte(ctx context.Context, obj *ent.RecordWhereInput, data *string) error
	UpdatedByLt(ctx context.Context, obj *ent.RecordWhereInput, data *string) error
	UpdatedByLte(ctx context.Context, obj *ent.RecordWhereInput, data *string) error

	UserID(ctx context.Context, obj *ent.RecordWhereInput, data *string) error
	UserIDNeq(ctx context.Context, obj *ent.RecordWhereInput, data *string) error
	UserIDIn(ctx context.Context, obj *ent.RecordWhereInput, data []string) error
	UserIDNotIn(ctx context.Context, obj *ent.RecordWhereInput, data []string) error
	UserIDGt(ctx context.Context, obj *ent.RecordWhereInput, data *string) error
	UserIDGte(ctx context.Context, obj *ent.RecordWhereInput, data *string) error
	UserIDLt(ctx context.Context, obj *ent.RecordWhereInput, data *string) error
	UserIDLte(ctx context.Context, obj *ent.RecordWhereInput, data *string) error
	RoomID(ctx context.Context, obj *ent.RecordWhereInput, data *string) error
	RoomIDNeq(ctx context.Context, obj *ent.RecordWhereInput, data *string) error
	RoomIDIn(ctx context.Context, obj *ent.RecordWhereInput, data []string) error
	RoomIDNotIn(ctx context.Context, obj *ent.RecordWhereInput, data []string) error
}

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

func (*Resolver) Card

func (r *Resolver) Card() CardResolver

Card returns CardResolver implementation.

func (*Resolver) CardWhereInput

func (r *Resolver) CardWhereInput() CardWhereInputResolver

CardWhereInput returns CardWhereInputResolver implementation.

func (*Resolver) CreateCardInput

func (r *Resolver) CreateCardInput() CreateCardInputResolver

CreateCardInput returns CreateCardInputResolver implementation.

func (*Resolver) CreateGameInput

func (r *Resolver) CreateGameInput() CreateGameInputResolver

CreateGameInput returns CreateGameInputResolver implementation.

func (*Resolver) CreateGameUserInput

func (r *Resolver) CreateGameUserInput() CreateGameUserInputResolver

CreateGameUserInput returns CreateGameUserInputResolver implementation.

func (*Resolver) CreateMissionInput

func (r *Resolver) CreateMissionInput() CreateMissionInputResolver

CreateMissionInput returns CreateMissionInputResolver implementation.

func (*Resolver) CreateRecordInput

func (r *Resolver) CreateRecordInput() CreateRecordInputResolver

CreateRecordInput returns CreateRecordInputResolver implementation.

func (*Resolver) CreateRoomInput

func (r *Resolver) CreateRoomInput() CreateRoomInputResolver

CreateRoomInput returns CreateRoomInputResolver implementation.

func (*Resolver) CreateRoomUserInput

func (r *Resolver) CreateRoomUserInput() CreateRoomUserInputResolver

CreateRoomUserInput returns CreateRoomUserInputResolver implementation.

func (*Resolver) CreateSquadInput

func (r *Resolver) CreateSquadInput() CreateSquadInputResolver

CreateSquadInput returns CreateSquadInputResolver implementation.

func (*Resolver) CreateVoteInput

func (r *Resolver) CreateVoteInput() CreateVoteInputResolver

CreateVoteInput returns CreateVoteInputResolver implementation.

func (*Resolver) Game

func (r *Resolver) Game() GameResolver

Game returns GameResolver implementation.

func (*Resolver) GameUser

func (r *Resolver) GameUser() GameUserResolver

GameUser returns GameUserResolver implementation.

func (*Resolver) GameUserWhereInput

func (r *Resolver) GameUserWhereInput() GameUserWhereInputResolver

GameUserWhereInput returns GameUserWhereInputResolver implementation.

func (*Resolver) GameWhereInput

func (r *Resolver) GameWhereInput() GameWhereInputResolver

GameWhereInput returns GameWhereInputResolver implementation.

func (*Resolver) Mission

func (r *Resolver) Mission() MissionResolver

Mission returns MissionResolver implementation.

func (*Resolver) MissionWhereInput

func (r *Resolver) MissionWhereInput() MissionWhereInputResolver

MissionWhereInput returns MissionWhereInputResolver implementation.

func (*Resolver) Mutation

func (r *Resolver) Mutation() MutationResolver

Mutation returns MutationResolver implementation.

func (*Resolver) Query

func (r *Resolver) Query() QueryResolver

Query returns QueryResolver implementation.

func (*Resolver) Record

func (r *Resolver) Record() RecordResolver

Record returns RecordResolver implementation.

func (*Resolver) RecordWhereInput

func (r *Resolver) RecordWhereInput() RecordWhereInputResolver

RecordWhereInput returns RecordWhereInputResolver implementation.

func (*Resolver) Room

func (r *Resolver) Room() RoomResolver

Room returns RoomResolver implementation.

func (*Resolver) RoomUser

func (r *Resolver) RoomUser() RoomUserResolver

RoomUser returns RoomUserResolver implementation.

func (*Resolver) RoomUserWhereInput

func (r *Resolver) RoomUserWhereInput() RoomUserWhereInputResolver

RoomUserWhereInput returns RoomUserWhereInputResolver implementation.

func (*Resolver) RoomWhereInput

func (r *Resolver) RoomWhereInput() RoomWhereInputResolver

RoomWhereInput returns RoomWhereInputResolver implementation.

func (*Resolver) Squad

func (r *Resolver) Squad() SquadResolver

Squad returns SquadResolver implementation.

func (*Resolver) SquadWhereInput

func (r *Resolver) SquadWhereInput() SquadWhereInputResolver

SquadWhereInput returns SquadWhereInputResolver implementation.

func (*Resolver) Subscription

func (r *Resolver) Subscription() SubscriptionResolver

Subscription returns SubscriptionResolver implementation.

func (*Resolver) UpdateCardInput

func (r *Resolver) UpdateCardInput() UpdateCardInputResolver

UpdateCardInput returns UpdateCardInputResolver implementation.

func (*Resolver) UpdateGameInput

func (r *Resolver) UpdateGameInput() UpdateGameInputResolver

UpdateGameInput returns UpdateGameInputResolver implementation.

func (*Resolver) UpdateGameUserInput

func (r *Resolver) UpdateGameUserInput() UpdateGameUserInputResolver

UpdateGameUserInput returns UpdateGameUserInputResolver implementation.

func (*Resolver) UpdateMissionInput

func (r *Resolver) UpdateMissionInput() UpdateMissionInputResolver

UpdateMissionInput returns UpdateMissionInputResolver implementation.

func (*Resolver) UpdateRecordInput

func (r *Resolver) UpdateRecordInput() UpdateRecordInputResolver

UpdateRecordInput returns UpdateRecordInputResolver implementation.

func (*Resolver) UpdateRoomInput

func (r *Resolver) UpdateRoomInput() UpdateRoomInputResolver

UpdateRoomInput returns UpdateRoomInputResolver implementation.

func (*Resolver) UpdateRoomUserInput

func (r *Resolver) UpdateRoomUserInput() UpdateRoomUserInputResolver

UpdateRoomUserInput returns UpdateRoomUserInputResolver implementation.

func (*Resolver) UpdateSquadInput

func (r *Resolver) UpdateSquadInput() UpdateSquadInputResolver

UpdateSquadInput returns UpdateSquadInputResolver implementation.

func (*Resolver) UpdateVoteInput

func (r *Resolver) UpdateVoteInput() UpdateVoteInputResolver

UpdateVoteInput returns UpdateVoteInputResolver implementation.

func (*Resolver) Vote

func (r *Resolver) Vote() VoteResolver

Vote returns VoteResolver implementation.

func (*Resolver) VoteWhereInput

func (r *Resolver) VoteWhereInput() VoteWhereInputResolver

VoteWhereInput returns VoteWhereInputResolver implementation.

type ResolverRoot

type ResolverRoot interface {
	Card() CardResolver
	Game() GameResolver
	GameUser() GameUserResolver
	Mission() MissionResolver
	Mutation() MutationResolver
	Query() QueryResolver
	Record() RecordResolver
	Room() RoomResolver
	RoomUser() RoomUserResolver
	Squad() SquadResolver
	Subscription() SubscriptionResolver
	Vote() VoteResolver
	CardWhereInput() CardWhereInputResolver
	CreateCardInput() CreateCardInputResolver
	CreateGameInput() CreateGameInputResolver
	CreateGameUserInput() CreateGameUserInputResolver
	CreateMissionInput() CreateMissionInputResolver
	CreateRecordInput() CreateRecordInputResolver
	CreateRoomInput() CreateRoomInputResolver
	CreateRoomUserInput() CreateRoomUserInputResolver
	CreateSquadInput() CreateSquadInputResolver
	CreateVoteInput() CreateVoteInputResolver
	GameUserWhereInput() GameUserWhereInputResolver
	GameWhereInput() GameWhereInputResolver
	MissionWhereInput() MissionWhereInputResolver
	RecordWhereInput() RecordWhereInputResolver
	RoomUserWhereInput() RoomUserWhereInputResolver
	RoomWhereInput() RoomWhereInputResolver
	SquadWhereInput() SquadWhereInputResolver
	UpdateCardInput() UpdateCardInputResolver
	UpdateGameInput() UpdateGameInputResolver
	UpdateGameUserInput() UpdateGameUserInputResolver
	UpdateMissionInput() UpdateMissionInputResolver
	UpdateRecordInput() UpdateRecordInputResolver
	UpdateRoomInput() UpdateRoomInputResolver
	UpdateRoomUserInput() UpdateRoomUserInputResolver
	UpdateSquadInput() UpdateSquadInputResolver
	UpdateVoteInput() UpdateVoteInputResolver
	VoteWhereInput() VoteWhereInputResolver
}

type RoomResolver

type RoomResolver interface {
	ID(ctx context.Context, obj *ent.Room) (string, error)
	CreatedBy(ctx context.Context, obj *ent.Room) (string, error)
	UpdatedBy(ctx context.Context, obj *ent.Room) (string, error)
}

type RoomUserResolver

type RoomUserResolver interface {
	ID(ctx context.Context, obj *ent.RoomUser) (string, error)
	CreatedBy(ctx context.Context, obj *ent.RoomUser) (string, error)
	UpdatedBy(ctx context.Context, obj *ent.RoomUser) (string, error)

	UserID(ctx context.Context, obj *ent.RoomUser) (string, error)
	RoomID(ctx context.Context, obj *ent.RoomUser) (string, error)

	User(ctx context.Context, obj *ent.RoomUser) (*model.User, error)
}

type RoomUserWhereInputResolver

type RoomUserWhereInputResolver interface {
	ID(ctx context.Context, obj *ent.RoomUserWhereInput, data *string) error
	IDNeq(ctx context.Context, obj *ent.RoomUserWhereInput, data *string) error
	IDIn(ctx context.Context, obj *ent.RoomUserWhereInput, data []string) error
	IDNotIn(ctx context.Context, obj *ent.RoomUserWhereInput, data []string) error
	IDGt(ctx context.Context, obj *ent.RoomUserWhereInput, data *string) error
	IDGte(ctx context.Context, obj *ent.RoomUserWhereInput, data *string) error
	IDLt(ctx context.Context, obj *ent.RoomUserWhereInput, data *string) error
	IDLte(ctx context.Context, obj *ent.RoomUserWhereInput, data *string) error
	CreatedBy(ctx context.Context, obj *ent.RoomUserWhereInput, data *string) error
	CreatedByNeq(ctx context.Context, obj *ent.RoomUserWhereInput, data *string) error
	CreatedByIn(ctx context.Context, obj *ent.RoomUserWhereInput, data []string) error
	CreatedByNotIn(ctx context.Context, obj *ent.RoomUserWhereInput, data []string) error
	CreatedByGt(ctx context.Context, obj *ent.RoomUserWhereInput, data *string) error
	CreatedByGte(ctx context.Context, obj *ent.RoomUserWhereInput, data *string) error
	CreatedByLt(ctx context.Context, obj *ent.RoomUserWhereInput, data *string) error
	CreatedByLte(ctx context.Context, obj *ent.RoomUserWhereInput, data *string) error
	UpdatedBy(ctx context.Context, obj *ent.RoomUserWhereInput, data *string) error
	UpdatedByNeq(ctx context.Context, obj *ent.RoomUserWhereInput, data *string) error
	UpdatedByIn(ctx context.Context, obj *ent.RoomUserWhereInput, data []string) error
	UpdatedByNotIn(ctx context.Context, obj *ent.RoomUserWhereInput, data []string) error
	UpdatedByGt(ctx context.Context, obj *ent.RoomUserWhereInput, data *string) error
	UpdatedByGte(ctx context.Context, obj *ent.RoomUserWhereInput, data *string) error
	UpdatedByLt(ctx context.Context, obj *ent.RoomUserWhereInput, data *string) error
	UpdatedByLte(ctx context.Context, obj *ent.RoomUserWhereInput, data *string) error

	UserID(ctx context.Context, obj *ent.RoomUserWhereInput, data *string) error
	UserIDNeq(ctx context.Context, obj *ent.RoomUserWhereInput, data *string) error
	UserIDIn(ctx context.Context, obj *ent.RoomUserWhereInput, data []string) error
	UserIDNotIn(ctx context.Context, obj *ent.RoomUserWhereInput, data []string) error
	UserIDGt(ctx context.Context, obj *ent.RoomUserWhereInput, data *string) error
	UserIDGte(ctx context.Context, obj *ent.RoomUserWhereInput, data *string) error
	UserIDLt(ctx context.Context, obj *ent.RoomUserWhereInput, data *string) error
	UserIDLte(ctx context.Context, obj *ent.RoomUserWhereInput, data *string) error
	RoomID(ctx context.Context, obj *ent.RoomUserWhereInput, data *string) error
	RoomIDNeq(ctx context.Context, obj *ent.RoomUserWhereInput, data *string) error
	RoomIDIn(ctx context.Context, obj *ent.RoomUserWhereInput, data []string) error
	RoomIDNotIn(ctx context.Context, obj *ent.RoomUserWhereInput, data []string) error
}

type RoomWhereInputResolver

type RoomWhereInputResolver interface {
	ID(ctx context.Context, obj *ent.RoomWhereInput, data *string) error
	IDNeq(ctx context.Context, obj *ent.RoomWhereInput, data *string) error
	IDIn(ctx context.Context, obj *ent.RoomWhereInput, data []string) error
	IDNotIn(ctx context.Context, obj *ent.RoomWhereInput, data []string) error
	IDGt(ctx context.Context, obj *ent.RoomWhereInput, data *string) error
	IDGte(ctx context.Context, obj *ent.RoomWhereInput, data *string) error
	IDLt(ctx context.Context, obj *ent.RoomWhereInput, data *string) error
	IDLte(ctx context.Context, obj *ent.RoomWhereInput, data *string) error
	CreatedBy(ctx context.Context, obj *ent.RoomWhereInput, data *string) error
	CreatedByNeq(ctx context.Context, obj *ent.RoomWhereInput, data *string) error
	CreatedByIn(ctx context.Context, obj *ent.RoomWhereInput, data []string) error
	CreatedByNotIn(ctx context.Context, obj *ent.RoomWhereInput, data []string) error
	CreatedByGt(ctx context.Context, obj *ent.RoomWhereInput, data *string) error
	CreatedByGte(ctx context.Context, obj *ent.RoomWhereInput, data *string) error
	CreatedByLt(ctx context.Context, obj *ent.RoomWhereInput, data *string) error
	CreatedByLte(ctx context.Context, obj *ent.RoomWhereInput, data *string) error
	UpdatedBy(ctx context.Context, obj *ent.RoomWhereInput, data *string) error
	UpdatedByNeq(ctx context.Context, obj *ent.RoomWhereInput, data *string) error
	UpdatedByIn(ctx context.Context, obj *ent.RoomWhereInput, data []string) error
	UpdatedByNotIn(ctx context.Context, obj *ent.RoomWhereInput, data []string) error
	UpdatedByGt(ctx context.Context, obj *ent.RoomWhereInput, data *string) error
	UpdatedByGte(ctx context.Context, obj *ent.RoomWhereInput, data *string) error
	UpdatedByLt(ctx context.Context, obj *ent.RoomWhereInput, data *string) error
	UpdatedByLte(ctx context.Context, obj *ent.RoomWhereInput, data *string) error
}

type SquadResolver

type SquadResolver interface {
	ID(ctx context.Context, obj *ent.Squad) (string, error)
	CreatedBy(ctx context.Context, obj *ent.Squad) (string, error)
	UpdatedBy(ctx context.Context, obj *ent.Squad) (string, error)

	MissionID(ctx context.Context, obj *ent.Squad) (string, error)
	UserID(ctx context.Context, obj *ent.Squad) (string, error)

	User(ctx context.Context, obj *ent.Squad) (*model.User, error)
}

type SquadWhereInputResolver

type SquadWhereInputResolver interface {
	ID(ctx context.Context, obj *ent.SquadWhereInput, data *string) error
	IDNeq(ctx context.Context, obj *ent.SquadWhereInput, data *string) error
	IDIn(ctx context.Context, obj *ent.SquadWhereInput, data []string) error
	IDNotIn(ctx context.Context, obj *ent.SquadWhereInput, data []string) error
	IDGt(ctx context.Context, obj *ent.SquadWhereInput, data *string) error
	IDGte(ctx context.Context, obj *ent.SquadWhereInput, data *string) error
	IDLt(ctx context.Context, obj *ent.SquadWhereInput, data *string) error
	IDLte(ctx context.Context, obj *ent.SquadWhereInput, data *string) error
	CreatedBy(ctx context.Context, obj *ent.SquadWhereInput, data *string) error
	CreatedByNeq(ctx context.Context, obj *ent.SquadWhereInput, data *string) error
	CreatedByIn(ctx context.Context, obj *ent.SquadWhereInput, data []string) error
	CreatedByNotIn(ctx context.Context, obj *ent.SquadWhereInput, data []string) error
	CreatedByGt(ctx context.Context, obj *ent.SquadWhereInput, data *string) error
	CreatedByGte(ctx context.Context, obj *ent.SquadWhereInput, data *string) error
	CreatedByLt(ctx context.Context, obj *ent.SquadWhereInput, data *string) error
	CreatedByLte(ctx context.Context, obj *ent.SquadWhereInput, data *string) error
	UpdatedBy(ctx context.Context, obj *ent.SquadWhereInput, data *string) error
	UpdatedByNeq(ctx context.Context, obj *ent.SquadWhereInput, data *string) error
	UpdatedByIn(ctx context.Context, obj *ent.SquadWhereInput, data []string) error
	UpdatedByNotIn(ctx context.Context, obj *ent.SquadWhereInput, data []string) error
	UpdatedByGt(ctx context.Context, obj *ent.SquadWhereInput, data *string) error
	UpdatedByGte(ctx context.Context, obj *ent.SquadWhereInput, data *string) error
	UpdatedByLt(ctx context.Context, obj *ent.SquadWhereInput, data *string) error
	UpdatedByLte(ctx context.Context, obj *ent.SquadWhereInput, data *string) error

	MissionID(ctx context.Context, obj *ent.SquadWhereInput, data *string) error
	MissionIDNeq(ctx context.Context, obj *ent.SquadWhereInput, data *string) error
	MissionIDIn(ctx context.Context, obj *ent.SquadWhereInput, data []string) error
	MissionIDNotIn(ctx context.Context, obj *ent.SquadWhereInput, data []string) error
	UserID(ctx context.Context, obj *ent.SquadWhereInput, data *string) error
	UserIDNeq(ctx context.Context, obj *ent.SquadWhereInput, data *string) error
	UserIDIn(ctx context.Context, obj *ent.SquadWhereInput, data []string) error
	UserIDNotIn(ctx context.Context, obj *ent.SquadWhereInput, data []string) error
	UserIDGt(ctx context.Context, obj *ent.SquadWhereInput, data *string) error
	UserIDGte(ctx context.Context, obj *ent.SquadWhereInput, data *string) error
	UserIDLt(ctx context.Context, obj *ent.SquadWhereInput, data *string) error
	UserIDLte(ctx context.Context, obj *ent.SquadWhereInput, data *string) error
}

type SubscriptionResolver

type SubscriptionResolver interface {
	GetRoomUsers(ctx context.Context, req *model.RoomRequest) (<-chan []*ent.RoomUser, error)
	GetRoomOngoingGame(ctx context.Context, req model.RoomRequest) (<-chan *ent.Game, error)
	GetMissionsByGame(ctx context.Context, req model.GameRequest) (<-chan []*ent.Mission, error)
	GetAssassinationByGame(ctx context.Context, req model.GameRequest) (<-chan *model.AssassinInfo, error)
	GetGame(ctx context.Context, req model.GameRequest) (<-chan *ent.Game, error)
}

type UpdateCardInputResolver

type UpdateCardInputResolver interface {
	CreatedBy(ctx context.Context, obj *ent.UpdateCardInput, data *string) error
	UpdatedBy(ctx context.Context, obj *ent.UpdateCardInput, data *string) error

	AddGameUserIDs(ctx context.Context, obj *ent.UpdateCardInput, data []string) error
	RemoveGameUserIDs(ctx context.Context, obj *ent.UpdateCardInput, data []string) error
}

type UpdateGameInputResolver

type UpdateGameInputResolver interface {
	CreatedBy(ctx context.Context, obj *ent.UpdateGameInput, data *string) error
	UpdatedBy(ctx context.Context, obj *ent.UpdateGameInput, data *string) error

	Capacity(ctx context.Context, obj *ent.UpdateGameInput, data *int) error

	AssassinChance(ctx context.Context, obj *ent.UpdateGameInput, data *int) error

	AddGameUserIDs(ctx context.Context, obj *ent.UpdateGameInput, data []string) error
	RemoveGameUserIDs(ctx context.Context, obj *ent.UpdateGameInput, data []string) error
	AddMissionIDs(ctx context.Context, obj *ent.UpdateGameInput, data []string) error
	RemoveMissionIDs(ctx context.Context, obj *ent.UpdateGameInput, data []string) error

	RoomID(ctx context.Context, obj *ent.UpdateGameInput, data *string) error
}

type UpdateGameUserInputResolver

type UpdateGameUserInputResolver interface {
	CreatedBy(ctx context.Context, obj *ent.UpdateGameUserInput, data *string) error
	UpdatedBy(ctx context.Context, obj *ent.UpdateGameUserInput, data *string) error

	UserID(ctx context.Context, obj *ent.UpdateGameUserInput, data *string) error
	Number(ctx context.Context, obj *ent.UpdateGameUserInput, data *int) error

	GameID(ctx context.Context, obj *ent.UpdateGameUserInput, data *string) error

	CardID(ctx context.Context, obj *ent.UpdateGameUserInput, data *string) error
}

type UpdateMissionInputResolver

type UpdateMissionInputResolver interface {
	CreatedBy(ctx context.Context, obj *ent.UpdateMissionInput, data *string) error
	UpdatedBy(ctx context.Context, obj *ent.UpdateMissionInput, data *string) error

	Sequence(ctx context.Context, obj *ent.UpdateMissionInput, data *int) error

	Capacity(ctx context.Context, obj *ent.UpdateMissionInput, data *int) error
	LeaderID(ctx context.Context, obj *ent.UpdateMissionInput, data *string) error

	GameID(ctx context.Context, obj *ent.UpdateMissionInput, data *string) error
	AddSquadIDs(ctx context.Context, obj *ent.UpdateMissionInput, data []string) error
	RemoveSquadIDs(ctx context.Context, obj *ent.UpdateMissionInput, data []string) error
	AddVoteIDs(ctx context.Context, obj *ent.UpdateMissionInput, data []string) error
	RemoveVoteIDs(ctx context.Context, obj *ent.UpdateMissionInput, data []string) error
}

type UpdateRecordInputResolver

type UpdateRecordInputResolver interface {
	CreatedBy(ctx context.Context, obj *ent.UpdateRecordInput, data *string) error
	UpdatedBy(ctx context.Context, obj *ent.UpdateRecordInput, data *string) error

	UserID(ctx context.Context, obj *ent.UpdateRecordInput, data *string) error

	RoomID(ctx context.Context, obj *ent.UpdateRecordInput, data *string) error
}

type UpdateRoomInputResolver

type UpdateRoomInputResolver interface {
	CreatedBy(ctx context.Context, obj *ent.UpdateRoomInput, data *string) error
	UpdatedBy(ctx context.Context, obj *ent.UpdateRoomInput, data *string) error

	AddRoomUserIDs(ctx context.Context, obj *ent.UpdateRoomInput, data []string) error
	RemoveRoomUserIDs(ctx context.Context, obj *ent.UpdateRoomInput, data []string) error
	AddGameIDs(ctx context.Context, obj *ent.UpdateRoomInput, data []string) error
	RemoveGameIDs(ctx context.Context, obj *ent.UpdateRoomInput, data []string) error
	AddRecordIDs(ctx context.Context, obj *ent.UpdateRoomInput, data []string) error
	RemoveRecordIDs(ctx context.Context, obj *ent.UpdateRoomInput, data []string) error
}

type UpdateRoomUserInputResolver

type UpdateRoomUserInputResolver interface {
	CreatedBy(ctx context.Context, obj *ent.UpdateRoomUserInput, data *string) error
	UpdatedBy(ctx context.Context, obj *ent.UpdateRoomUserInput, data *string) error

	UserID(ctx context.Context, obj *ent.UpdateRoomUserInput, data *string) error

	RoomID(ctx context.Context, obj *ent.UpdateRoomUserInput, data *string) error
}

type UpdateSquadInputResolver

type UpdateSquadInputResolver interface {
	CreatedBy(ctx context.Context, obj *ent.UpdateSquadInput, data *string) error
	UpdatedBy(ctx context.Context, obj *ent.UpdateSquadInput, data *string) error

	UserID(ctx context.Context, obj *ent.UpdateSquadInput, data *string) error

	MissionID(ctx context.Context, obj *ent.UpdateSquadInput, data *string) error
}

type UpdateVoteInputResolver

type UpdateVoteInputResolver interface {
	CreatedBy(ctx context.Context, obj *ent.UpdateVoteInput, data *string) error
	UpdatedBy(ctx context.Context, obj *ent.UpdateVoteInput, data *string) error

	UserID(ctx context.Context, obj *ent.UpdateVoteInput, data *string) error

	MissionID(ctx context.Context, obj *ent.UpdateVoteInput, data *string) error
}

type VoteResolver

type VoteResolver interface {
	ID(ctx context.Context, obj *ent.Vote) (string, error)
	CreatedBy(ctx context.Context, obj *ent.Vote) (string, error)
	UpdatedBy(ctx context.Context, obj *ent.Vote) (string, error)

	MissionID(ctx context.Context, obj *ent.Vote) (string, error)
	UserID(ctx context.Context, obj *ent.Vote) (string, error)

	User(ctx context.Context, obj *ent.Vote) (*model.User, error)
}

type VoteWhereInputResolver

type VoteWhereInputResolver interface {
	ID(ctx context.Context, obj *ent.VoteWhereInput, data *string) error
	IDNeq(ctx context.Context, obj *ent.VoteWhereInput, data *string) error
	IDIn(ctx context.Context, obj *ent.VoteWhereInput, data []string) error
	IDNotIn(ctx context.Context, obj *ent.VoteWhereInput, data []string) error
	IDGt(ctx context.Context, obj *ent.VoteWhereInput, data *string) error
	IDGte(ctx context.Context, obj *ent.VoteWhereInput, data *string) error
	IDLt(ctx context.Context, obj *ent.VoteWhereInput, data *string) error
	IDLte(ctx context.Context, obj *ent.VoteWhereInput, data *string) error
	CreatedBy(ctx context.Context, obj *ent.VoteWhereInput, data *string) error
	CreatedByNeq(ctx context.Context, obj *ent.VoteWhereInput, data *string) error
	CreatedByIn(ctx context.Context, obj *ent.VoteWhereInput, data []string) error
	CreatedByNotIn(ctx context.Context, obj *ent.VoteWhereInput, data []string) error
	CreatedByGt(ctx context.Context, obj *ent.VoteWhereInput, data *string) error
	CreatedByGte(ctx context.Context, obj *ent.VoteWhereInput, data *string) error
	CreatedByLt(ctx context.Context, obj *ent.VoteWhereInput, data *string) error
	CreatedByLte(ctx context.Context, obj *ent.VoteWhereInput, data *string) error
	UpdatedBy(ctx context.Context, obj *ent.VoteWhereInput, data *string) error
	UpdatedByNeq(ctx context.Context, obj *ent.VoteWhereInput, data *string) error
	UpdatedByIn(ctx context.Context, obj *ent.VoteWhereInput, data []string) error
	UpdatedByNotIn(ctx context.Context, obj *ent.VoteWhereInput, data []string) error
	UpdatedByGt(ctx context.Context, obj *ent.VoteWhereInput, data *string) error
	UpdatedByGte(ctx context.Context, obj *ent.VoteWhereInput, data *string) error
	UpdatedByLt(ctx context.Context, obj *ent.VoteWhereInput, data *string) error
	UpdatedByLte(ctx context.Context, obj *ent.VoteWhereInput, data *string) error

	MissionID(ctx context.Context, obj *ent.VoteWhereInput, data *string) error
	MissionIDNeq(ctx context.Context, obj *ent.VoteWhereInput, data *string) error
	MissionIDIn(ctx context.Context, obj *ent.VoteWhereInput, data []string) error
	MissionIDNotIn(ctx context.Context, obj *ent.VoteWhereInput, data []string) error
	UserID(ctx context.Context, obj *ent.VoteWhereInput, data *string) error
	UserIDNeq(ctx context.Context, obj *ent.VoteWhereInput, data *string) error
	UserIDIn(ctx context.Context, obj *ent.VoteWhereInput, data []string) error
	UserIDNotIn(ctx context.Context, obj *ent.VoteWhereInput, data []string) error
	UserIDGt(ctx context.Context, obj *ent.VoteWhereInput, data *string) error
	UserIDGte(ctx context.Context, obj *ent.VoteWhereInput, data *string) error
	UserIDLt(ctx context.Context, obj *ent.VoteWhereInput, data *string) error
	UserIDLte(ctx context.Context, obj *ent.VoteWhereInput, data *string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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