Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachUsecases ¶
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
Types ¶
type ComplexityRoot ¶
type ComplexityRoot struct { DeleteOrganizationPayload struct { OrganizationID func(childComplexity int) int } DeletePluginPayload struct { PluginID func(childComplexity int) int } DeleteVersionPayload struct { VersionID func(childComplexity int) int } Me struct { Description func(childComplexity int) int DisplayName func(childComplexity int) int ID func(childComplexity int) int Lang func(childComplexity int) int Name func(childComplexity int) int Plugins func(childComplexity int, first *int, last *int, before *string, after *string, offset *int) int Publishable func(childComplexity int) int Tel func(childComplexity int) int } MePayload struct { Me func(childComplexity int) int } Mutation struct { CreateOrganization func(childComplexity int, input gqlmodel.CreateOrganizationInput) int CreatePlugin func(childComplexity int, input gqlmodel.CreatePluginInput) int DeleteOrganization func(childComplexity int, input gqlmodel.DeleteOrganizationInput) int DeletePlugin func(childComplexity int, input gqlmodel.DeletePluginInput) int DeleteVersion func(childComplexity int, input gqlmodel.DeleteVersionInput) int LikePlugin func(childComplexity int, input gqlmodel.LikePluginInput) int ParsePlugin func(childComplexity int, input gqlmodel.CreatePluginInput) int UnlikePlugin func(childComplexity int, input gqlmodel.UnlikePluginInput) int UpdateMe func(childComplexity int, input gqlmodel.UpdateMeInput) int UpdateOrganization func(childComplexity int, input gqlmodel.UpdateOrganizationInput) int UpdatePlugin func(childComplexity int, input gqlmodel.UpdatePluginInput) int UpdateVersion func(childComplexity int, input gqlmodel.UpdateVersionInput) int } Organization struct { Active func(childComplexity int) int Description func(childComplexity int) int DisplayName func(childComplexity int) int ID func(childComplexity int) int MemberIds func(childComplexity int) int Members func(childComplexity int) int Name func(childComplexity int) int Plugins func(childComplexity int, first *int, last *int, before *string, after *string) int } OrganizationPayload struct { Organization 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 } Plugin struct { Active func(childComplexity int) int Author func(childComplexity int) int Core func(childComplexity int) int CreatedAt func(childComplexity int) int Description func(childComplexity int) int Downloads func(childComplexity int) int ID func(childComplexity int) int Icon func(childComplexity int) int Images func(childComplexity int) int LatestVersion func(childComplexity int) int Like func(childComplexity int) int Liked func(childComplexity int) int Name func(childComplexity int) int PublishedAt func(childComplexity int) int Publisher func(childComplexity int) int PublisherID func(childComplexity int) int Readme func(childComplexity int) int Repository func(childComplexity int) int Tags func(childComplexity int) int Type func(childComplexity int) int UpdatedAt func(childComplexity int) int Versions func(childComplexity int) int } PluginConnection struct { Edges func(childComplexity int) int Nodes func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } PluginEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } PluginPayload struct { Plugin func(childComplexity int) int } Query struct { Me func(childComplexity int) int Node func(childComplexity int, id string, typeArg gqlmodel.NodeType) int Nodes func(childComplexity int, ids []string, typeArg gqlmodel.NodeType) int Plugins func(childComplexity int, input gqlmodel.PluginsInput) int } User struct { Description func(childComplexity int) int DisplayName func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int OrganizationIds func(childComplexity int) int Organizations func(childComplexity int) int Plugins func(childComplexity int, first *int, last *int, before *string, after *string, offset *int) int } Version struct { Active func(childComplexity int) int Checksum func(childComplexity int) int CreatedAt func(childComplexity int) int Description func(childComplexity int) int Downloads func(childComplexity int) int PublishedAt func(childComplexity int) int UpdatedAt func(childComplexity int) int Version func(childComplexity int) int } VersionPayload struct { Plugin func(childComplexity int) int Version func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type ContextKey ¶
type ContextKey string
type DirectiveRoot ¶
type DirectiveRoot struct { }
type MutationResolver ¶
type MutationResolver interface { UpdateMe(ctx context.Context, input gqlmodel.UpdateMeInput) (*gqlmodel.MePayload, error) ParsePlugin(ctx context.Context, input gqlmodel.CreatePluginInput) (*gqlmodel.PluginPayload, error) CreatePlugin(ctx context.Context, input gqlmodel.CreatePluginInput) (*gqlmodel.PluginPayload, error) UpdatePlugin(ctx context.Context, input gqlmodel.UpdatePluginInput) (*gqlmodel.PluginPayload, error) DeletePlugin(ctx context.Context, input gqlmodel.DeletePluginInput) (*gqlmodel.DeletePluginPayload, error) UpdateVersion(ctx context.Context, input gqlmodel.UpdateVersionInput) (*gqlmodel.VersionPayload, error) DeleteVersion(ctx context.Context, input gqlmodel.DeleteVersionInput) (*gqlmodel.DeleteVersionPayload, error) LikePlugin(ctx context.Context, input gqlmodel.LikePluginInput) (*gqlmodel.PluginPayload, error) UnlikePlugin(ctx context.Context, input gqlmodel.UnlikePluginInput) (*gqlmodel.PluginPayload, error) CreateOrganization(ctx context.Context, input gqlmodel.CreateOrganizationInput) (*gqlmodel.OrganizationPayload, error) UpdateOrganization(ctx context.Context, input gqlmodel.UpdateOrganizationInput) (*gqlmodel.OrganizationPayload, error) DeleteOrganization(ctx context.Context, input gqlmodel.DeleteOrganizationInput) (*gqlmodel.DeleteOrganizationPayload, error) }
type QueryResolver ¶
type QueryResolver interface { Me(ctx context.Context) (*gqlmodel.Me, error) Node(ctx context.Context, id string, typeArg gqlmodel.NodeType) (gqlmodel.Node, error) Nodes(ctx context.Context, ids []string, typeArg gqlmodel.NodeType) ([]gqlmodel.Node, error) Plugins(ctx context.Context, input gqlmodel.PluginsInput) (*gqlmodel.PluginConnection, error) }
type Resolver ¶
type Resolver struct{}
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 }
func NewResolver ¶
func NewResolver() ResolverRoot
Source Files ¶
Click to show internal directories.
Click to hide internal directories.