Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultPage = 0
View Source
const DefaultPageSize = 10
Variables ¶
This section is empty.
Functions ¶
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
Types ¶
type AuditEventPagination ¶
type ComplexityRoot ¶
type ComplexityRoot struct { AuditEvent struct { ApiGroup func(childComplexity int) int ApiVersion func(childComplexity int) int AuditID func(childComplexity int) int ID func(childComplexity int) int Level func(childComplexity int) int Name func(childComplexity int) int Namespace func(childComplexity int) int Raw func(childComplexity int) int RequestTimestamp func(childComplexity int) int Resource func(childComplexity int) int Stage func(childComplexity int) int StageTimestamp func(childComplexity int) int SubResource func(childComplexity int) int UserAgent func(childComplexity int) int Verb func(childComplexity int) int } AuditEventConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } AuditEventEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } AuditEventPagination struct { HasNextPage func(childComplexity int) int HasPreviousPage func(childComplexity int) int Page func(childComplexity int) int PageSize func(childComplexity int) int Rows func(childComplexity int) int Total func(childComplexity int) int TotalPages func(childComplexity int) int } Mutation struct { ImportResourceKindTsv func(childComplexity int, tsv string) 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 { AuditEvents func(childComplexity int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.AuditEventOrder, where *ent.AuditEventWhereInput) int CompletedRequestResponseAuditEvents func(childComplexity int, page *int, pageSize *int) int Node func(childComplexity int, id int) int Nodes func(childComplexity int, ids []int) int ResourceKinds func(childComplexity int, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, where *ent.ResourceKindWhereInput) int } ResourceKind struct { ApiVersion func(childComplexity int) int ID func(childComplexity int) int Kind func(childComplexity int) int Name func(childComplexity int) int Namespaced func(childComplexity int) int } ResourceKindConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } ResourceKindEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } View struct { ID func(childComplexity int) int } }
type Config ¶
type Config struct { Schema *ast.Schema Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type MutationResolver ¶
type QueryResolver ¶
type QueryResolver interface { Node(ctx context.Context, id int) (ent.Noder, error) Nodes(ctx context.Context, ids []int) ([]ent.Noder, error) AuditEvents(ctx context.Context, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, orderBy *ent.AuditEventOrder, where *ent.AuditEventWhereInput) (*ent.AuditEventConnection, error) ResourceKinds(ctx context.Context, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, where *ent.ResourceKindWhereInput) (*ent.ResourceKindConnection, error) CompletedRequestResponseAuditEvents(ctx context.Context, page *int, pageSize *int) (*AuditEventPagination, error) }
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
func NewResolver ¶
func (*Resolver) Mutation ¶
func (r *Resolver) Mutation() MutationResolver
Mutation returns MutationResolver implementation.
func (*Resolver) Query ¶
func (r *Resolver) Query() QueryResolver
Query returns QueryResolver implementation.
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.