Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
Types ¶
type ComplexityRoot ¶
type ComplexityRoot struct { Guild struct { Admins func(childComplexity int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.UserOrder, where *ent.UserWhereInput) int CreateTime func(childComplexity int) int Features func(childComplexity int) int GuildAdminConfig func(childComplexity int) int GuildConfig func(childComplexity int) int GuildEvents func(childComplexity int) int GuildID func(childComplexity int) int ID func(childComplexity int) int IconHash func(childComplexity int) int IconURL func(childComplexity int) int JoinedAt func(childComplexity int) int Large func(childComplexity int) int MemberCount func(childComplexity int) int Name func(childComplexity int) int OwnerID func(childComplexity int) int Permissions func(childComplexity int) int SystemChannelFlags func(childComplexity int) int UpdateTime func(childComplexity int) int } GuildAdminConfig struct { Comment func(childComplexity int) int CreateTime func(childComplexity int) int DefaultMaxChannels func(childComplexity int) int DefaultMaxClones func(childComplexity int) int Enabled func(childComplexity int) int Guild func(childComplexity int) int ID func(childComplexity int) int UpdateTime func(childComplexity int) int } GuildAdminConfigConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } GuildAdminConfigEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } GuildConfig struct { ContactEmail func(childComplexity int) int CreateTime func(childComplexity int) int DefaultMaxClones func(childComplexity int) int Enabled func(childComplexity int) int Guild func(childComplexity int) int ID func(childComplexity int) int RegexMatch func(childComplexity int) int UpdateTime func(childComplexity int) int } GuildConfigConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } GuildConfigEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } GuildConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } GuildEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } GuildEvent struct { CreateTime func(childComplexity int) int Guild func(childComplexity int) int ID func(childComplexity int) int Message func(childComplexity int) int Metadata func(childComplexity int) int Type func(childComplexity int) int UpdateTime func(childComplexity int) int } GuildEventConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } GuildEventEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } Mutation struct { BanUser func(childComplexity int, id int, reason string) int DeleteAccount func(childComplexity int, noop *int) int Ping func(childComplexity int) int UnbanUser func(childComplexity int, id int) int UpdateGuildAdminConfig func(childComplexity int, id int, input ent.UpdateGuildAdminConfigInput) int UpdateGuildConfig func(childComplexity int, id int, input ent.UpdateGuildConfigInput) 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 { GuildAdminConfigs func(childComplexity int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, where *ent.GuildAdminConfigWhereInput) int GuildConfigs func(childComplexity int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, where *ent.GuildConfigWhereInput) int GuildEvents func(childComplexity int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.GuildEventOrder, where *ent.GuildEventWhereInput) int Guilds func(childComplexity int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.GuildOrder, where *ent.GuildWhereInput) int Node func(childComplexity int, id int) int Nodes func(childComplexity int, ids []int) int Self func(childComplexity int) int Users func(childComplexity int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.UserOrder, where *ent.UserWhereInput) int } Subscription struct { GuildEventAdded func(childComplexity int, input ent.GuildEventWhereInput) int } User struct { Admin func(childComplexity int) int AvatarHash func(childComplexity int) int AvatarURL func(childComplexity int) int BanReason func(childComplexity int) int Banned func(childComplexity int) int BannedBy func(childComplexity int) int BannedUsers func(childComplexity int) int Bot func(childComplexity int) int CreateTime func(childComplexity int) int Discriminator func(childComplexity int) int Email func(childComplexity int) int Flags func(childComplexity int) int ID func(childComplexity int) int Locale func(childComplexity int) int MfaEnabled func(childComplexity int) int PremiumType func(childComplexity int) int PublicFlags func(childComplexity int) int System func(childComplexity int) int UpdateTime func(childComplexity int) int UserGuilds func(childComplexity int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.GuildOrder, where *ent.GuildWhereInput) int UserID func(childComplexity int) int Username func(childComplexity int) int Verified func(childComplexity int) int } UserConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } UserEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type MutationResolver ¶
type MutationResolver interface { Ping(ctx context.Context) (*string, error) UpdateGuildConfig(ctx context.Context, id int, input ent.UpdateGuildConfigInput) (*ent.GuildConfig, error) UpdateGuildAdminConfig(ctx context.Context, id int, input ent.UpdateGuildAdminConfigInput) (*ent.GuildAdminConfig, error) BanUser(ctx context.Context, id int, reason string) (bool, error) UnbanUser(ctx context.Context, id int) (bool, error) DeleteAccount(ctx context.Context, noop *int) (bool, error) }
type QueryResolver ¶
type QueryResolver interface { Node(ctx context.Context, id int) (ent.Noder, error) Nodes(ctx context.Context, ids []int) ([]ent.Noder, error) Guilds(ctx context.Context, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.GuildOrder, where *ent.GuildWhereInput) (*ent.GuildConnection, error) GuildAdminConfigs(ctx context.Context, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, where *ent.GuildAdminConfigWhereInput) (*ent.GuildAdminConfigConnection, error) GuildConfigs(ctx context.Context, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, where *ent.GuildConfigWhereInput) (*ent.GuildConfigConnection, error) GuildEvents(ctx context.Context, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.GuildEventOrder, where *ent.GuildEventWhereInput) (*ent.GuildEventConnection, error) Users(ctx context.Context, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.UserOrder, where *ent.UserWhereInput) (*ent.UserConnection, error) Self(ctx context.Context) (*ent.User, error) }
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver Subscription() SubscriptionResolver }
type SubscriptionResolver ¶
type SubscriptionResolver interface {
GuildEventAdded(ctx context.Context, input ent.GuildEventWhereInput) (<-chan *ent.GuildEvent, error)
}
Click to show internal directories.
Click to hide internal directories.