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 { CreatedToken struct { CreatedAt func(childComplexity int) int ID func(childComplexity int) int Scopes func(childComplexity int) int Token func(childComplexity int) int UpdatedAt func(childComplexity int) int User func(childComplexity int) int UserID func(childComplexity int) int } File struct { CreatedAt func(childComplexity int) int Extension func(childComplexity int) int Hash func(childComplexity int) int ID func(childComplexity int) int MimeType func(childComplexity int) int Name func(childComplexity int) int PublicID func(childComplexity int) int Size func(childComplexity int) int UpdatedAt func(childComplexity int) int User func(childComplexity int) int UserID func(childComplexity int) int } Mutation struct { CreateFile func(childComplexity int, file graphql.Upload) int CreateToken func(childComplexity int, input model.TokenInput) int DeleteFile func(childComplexity int, id uuid.UUID) int DeleteToken func(childComplexity int, id uuid.UUID) int DeleteUser func(childComplexity int, id uuid.UUID) int } Query struct { File func(childComplexity int, id uuid.UUID) int Files func(childComplexity int) int Self func(childComplexity int) int Token func(childComplexity int, id uuid.UUID) int User func(childComplexity int, id uuid.UUID) int Users func(childComplexity int) int } Token struct { CreatedAt func(childComplexity int) int ID func(childComplexity int) int Scopes func(childComplexity int) int UpdatedAt func(childComplexity int) int User func(childComplexity int) int UserID func(childComplexity int) int } User struct { CreatedAt func(childComplexity int) int Files func(childComplexity int) int ID func(childComplexity int) int OpenidSub func(childComplexity int) int PreferredUsername func(childComplexity int) int Tokens func(childComplexity int) int UpdatedAt func(childComplexity int) int UsedStorage func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type FileResolver ¶
type MutationResolver ¶
type MutationResolver interface { DeleteUser(ctx context.Context, id uuid.UUID) (uuid.UUID, error) DeleteFile(ctx context.Context, id uuid.UUID) (uuid.UUID, error) CreateFile(ctx context.Context, file graphql.Upload) (*model.File, error) CreateToken(ctx context.Context, input model.TokenInput) (*model.CreatedToken, error) DeleteToken(ctx context.Context, id uuid.UUID) (uuid.UUID, error) }
type QueryResolver ¶
type QueryResolver interface { Self(ctx context.Context) (*model.User, error) Users(ctx context.Context) ([]*model.User, error) Files(ctx context.Context) ([]*model.File, error) User(ctx context.Context, id uuid.UUID) (*model.User, error) File(ctx context.Context, id uuid.UUID) (*model.File, error) Token(ctx context.Context, id uuid.UUID) (*model.Token, error) }
type Resolver ¶
func (*Resolver) File ¶
func (r *Resolver) File() FileResolver
File returns FileResolver 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) Token ¶
func (r *Resolver) Token() TokenResolver
Token returns TokenResolver implementation.
func (*Resolver) User ¶
func (r *Resolver) User() UserResolver
User returns UserResolver implementation.
type ResolverRoot ¶
type ResolverRoot interface { File() FileResolver Mutation() MutationResolver Query() QueryResolver Token() TokenResolver User() UserResolver }
type TokenResolver ¶
Click to show internal directories.
Click to hide internal directories.