Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Describer ¶
type Describer struct { Value interface{} Description string }
Describer is a wrapper for any type that allows a description
type Field ¶
type Field interface {
// contains filtered or unexported methods
}
Field resolve the given type
type GraphQLConfig ¶
GraphQLConfig represents the graphql configuration options
type GraphQLSchema ¶
type GraphQLSchema struct {
// contains filtered or unexported fields
}
GraphQLSchema contains the type, the query and the mutations of the type
func (*GraphQLSchema) Mutations ¶
func (t *GraphQLSchema) Mutations(resolverFunctions ...interface{}) *GraphQLSchema
Mutations adds the GraphQLMutation functions
func (*GraphQLSchema) Queries ¶
func (t *GraphQLSchema) Queries(resolverFunctions ...interface{}) *GraphQLSchema
Queries adds the Query resolver to the Type
type HTTPConfig ¶
HTTPConfig represents the http configurations
type ResolveParams ¶
type ResolveParams graphql.ResolveParams
ResolveParams Params for Field.resolve()
type Service ¶
type Service struct { HTTPConfig HTTPConfig GraphQLConfig GraphQLConfig // contains filtered or unexported fields }
Service represents a kosmo-microservice
func (*Service) Schemas ¶
func (s *Service) Schemas(schemas ...*GraphQLSchema) *Service
Schemas adds the schemas to the service
Source Files ¶
Click to show internal directories.
Click to hide internal directories.