Documentation ¶
Index ¶
- func FlamingoResolver(_ context.Context) (*string, error)
- func Generate(services []Service, basePath string, schemaBasePath string) error
- func MarshalDate(t time.Time) graphql.Marshaler
- func MarshalFloat(f big.Float) graphql.Marshaler
- func UnmarshalDate(v interface{}) (time.Time, error)
- func UnmarshalFloat(v interface{}) (big.Float, error)
- type FlamingoQueryResolver
- type Module
- type OpenCensusTracingExtension
- func (o *OpenCensusTracingExtension) ExtensionName() string
- func (o *OpenCensusTracingExtension) InterceptField(ctx context.Context, next graphql.Resolver) (res interface{}, err error)
- func (o *OpenCensusTracingExtension) InterceptOperation(ctx context.Context, next graphql.OperationHandler) graphql.ResponseHandler
- func (o *OpenCensusTracingExtension) InterceptResponse(ctx context.Context, next graphql.ResponseHandler) *graphql.Response
- func (o *OpenCensusTracingExtension) Validate(_ graphql.ExecutableSchema) error
- type Service
- type Types
- func (tc *Types) Directive(graphqlDirective string, typ interface{}, method string)
- func (tc *Types) GoField(graphqlType, graphqlField, goField string)
- func (tc *Types) Map(graphqlType string, goType interface{})
- func (tc *Types) Resolve(graphqlType, graphqlField string, typ interface{}, method string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FlamingoResolver ¶
FlamingoResolver always returns "flamingo" for default schemas.
func Generate ¶
Generate runs the graphql generation for the defined services Usually you won't need this, and it's intended for infrastructure implementations.
func MarshalDate ¶ added in v1.2.0
MarshalDate marshals time.Time inf form of YYYY-MM-DD
func MarshalFloat ¶
MarshalFloat for graphql Float scalars to be compatible with big.Float
func UnmarshalDate ¶ added in v1.2.0
UnmarshalDate unmarshalls YYYY-MM-DD to time.Time
func UnmarshalFloat ¶
UnmarshalFloat for graphql Float scalars to be compatible with big.Float
Types ¶
type FlamingoQueryResolver ¶
type FlamingoQueryResolver struct{}
FlamingoQueryResolver always resolves to the string "flamingo" for the default schemas.
type Module ¶
type Module struct{}
Module defines the graphql entry point and binds the graphql command and routes
type OpenCensusTracingExtension ¶ added in v1.10.0
type OpenCensusTracingExtension struct{}
func (*OpenCensusTracingExtension) ExtensionName ¶ added in v1.10.0
func (o *OpenCensusTracingExtension) ExtensionName() string
func (*OpenCensusTracingExtension) InterceptField ¶ added in v1.10.0
func (*OpenCensusTracingExtension) InterceptOperation ¶ added in v1.10.0
func (o *OpenCensusTracingExtension) InterceptOperation(ctx context.Context, next graphql.OperationHandler) graphql.ResponseHandler
func (*OpenCensusTracingExtension) InterceptResponse ¶ added in v1.10.0
func (o *OpenCensusTracingExtension) InterceptResponse(ctx context.Context, next graphql.ResponseHandler) *graphql.Response
func (*OpenCensusTracingExtension) Validate ¶ added in v1.10.0
func (o *OpenCensusTracingExtension) Validate(_ graphql.ExecutableSchema) error
type Service ¶
Service defines the interface for graphql services The Schema returns the GraphQL Schema definition The Types configure the GraphQL type mapping and resolution
type Types ¶ added in v1.1.0
type Types struct {
// contains filtered or unexported fields
}
Types represent information on Object->Go type mappings and resolvers
func (*Types) Directive ¶ added in v1.9.0
Directive specifies a directive resolver for a graphql directive
func (*Types) GoField ¶ added in v1.1.0
GoField sets a map to find the correct go field of an object