Documentation ¶
Index ¶
- func MarshalDateTime(d time.Time) graphql.Marshaler
- func New() graphql.ExecutableSchema
- func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
- func UnmarshalDateTime(v interface{}) (time.Time, error)
- type ComplexityRoot
- type Config
- type DirectiveRoot
- type MeResponse
- type MockEntity
- type MockEntityResponse
- type Object
- type QueryResolver
- type Resolver
- type ResolverRoot
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New() graphql.ExecutableSchema
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
func UnmarshalDateTime ¶
Types ¶
type ComplexityRoot ¶
type ComplexityRoot struct { MeResponse struct { Tid func(childComplexity int) int User func(childComplexity int) int } MockEntity struct { Id func(childComplexity int) int String func(childComplexity int) int Integer func(childComplexity int) int Float func(childComplexity int) int Boolean func(childComplexity int) int DateTime func(childComplexity int) int Object func(childComplexity int) int } MockEntityResponse struct { Tid func(childComplexity int) int Entity func(childComplexity int) int } Query struct { Me func(childComplexity int) int MockEntity func(childComplexity int) int } User struct { Id func(childComplexity int) int Name func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type MeResponse ¶
type MockEntity ¶
type MockEntityResponse ¶
type MockEntityResponse struct { Tid string `json:"tid"` Entity MockEntity `json:"entity"` }
type Object ¶
type Object map[string]interface{}
func (Object) MarshalGQL ¶
MarshalGQL implements the graphql.Marshaler interface
func (*Object) UnmarshalGQL ¶
UnmarshalGQL implements the graphql.Marshaler interface
type QueryResolver ¶
type QueryResolver interface { Me(ctx context.Context) (MeResponse, error) MockEntity(ctx context.Context) (MockEntityResponse, error) }
type Resolver ¶
type Resolver struct{}
func NewResolver ¶
func NewResolver() *Resolver
func (*Resolver) Query ¶
func (r *Resolver) Query() QueryResolver
type ResolverRoot ¶
type ResolverRoot interface {
Query() QueryResolver
}
Click to show internal directories.
Click to hide internal directories.