Documentation ¶
Overview ¶
Package service encapsulates the business logic for the application.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Issuer string `json:"issuer" mapstructure:"issuer"` Key string `json:"key" mapstructure:"key"` }
Config define the settings available when configuring a service handler instance.
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler provides the main service operator.
func (*Handler) AdminToken ¶
AdminToken generates the required credentials to access the API as an administrator.
func (*Handler) Schema ¶
func (h *Handler) Schema() gqlgen.ExecutableSchema
Schema required when exposing the service via GraphQL.
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolver provides the application's main entry point. The implementations required are located on "schema.resolvers.go".
func (*Resolver) Mutation ¶
func (r *Resolver) Mutation() server.MutationResolver
Mutation returns server.MutationResolver implementation.
func (*Resolver) Query ¶
func (r *Resolver) Query() server.QueryResolver
Query returns server.QueryResolver implementation.
Click to show internal directories.
Click to hide internal directories.