Versions in this module Expand all Collapse all v0 v0.2.0 Aug 23, 2018 v0.1.0 Aug 22, 2018 Changes in this version + const DefaultMaxSubscriptions + const DefaultMinRerunInterval + func CreateConnection(ctx context.Context, socket JSONSocket, schema *Schema, ...) *conn + func CreateJSONSocket(ctx context.Context, socket JSONSocket, schema *Schema, makeCtx MakeCtxFunc, ...) *conn + func CreateJSONSocketWithMutationSchema(ctx context.Context, socket JSONSocket, schema, mutationSchema *Schema, ...) *conn + func HTTPHandler(schema *Schema, middlewares ...MiddlewareFunc) http.Handler + func Handler(schema *Schema) http.Handler + func NewClientError(format string, a ...interface{}) error + func NewSafeError(format string, a ...interface{}) error + func PrepareQuery(typ Type, selectionSet *SelectionSet) error + func ServeJSONSocket(ctx context.Context, socket JSONSocket, schema *Schema, makeCtx MakeCtxFunc, ...) + type ClientError SafeError + func (e ClientError) Error() string + func (e ClientError) SanitizedError() string + type ComputationInput struct + Ctx context.Context + Extensions map[string]interface{} + Id string + ParsedQuery *Query + Previous interface{} + Query string + Variables map[string]interface{} + type ComputationOutput struct + Current interface{} + Error error + Metadata map[string]interface{} + type ConnectionOption func(*conn) + func WithExecutionLogger(logger GraphqlLogger) ConnectionOption + func WithMakeCtx(makeCtx MakeCtxFunc) ConnectionOption + func WithMaxSubscriptions(max int) ConnectionOption + func WithMinRerunInterval(d time.Duration) ConnectionOption + func WithMutationSchema(schema *Schema) ConnectionOption + func WithSubscriptionLogger(logger SubscriptionLogger) ConnectionOption + type Enum struct + ReverseMap map[interface{}]string + Type string + Values []string + func (e *Enum) String() string + type Executor struct + func (e *Executor) Execute(ctx context.Context, typ Type, source interface{}, query *Query) (interface{}, error) + type Field struct + Args map[string]Type + Expensive bool + ParseArguments func(json interface{}) (interface{}, error) + Resolve Resolver + Type Type + type Fragment struct + On string + SelectionSet *SelectionSet + type GraphqlLogger interface + Error func(ctx context.Context, err error, tags map[string]string) + FinishExecution func(ctx context.Context, tags map[string]string, delay time.Duration) + StartExecution func(ctx context.Context, tags map[string]string, initial bool) + type InputObject struct + InputFields map[string]Type + Name string + func (io *InputObject) String() string + type JSONSocket interface + Close func() error + ReadJSON func(value interface{}) error + WriteJSON func(value interface{}) error + type List struct + Type Type + func (l *List) String() string + type MakeCtxFunc func(context.Context) context.Context + type MiddlewareFunc func(input *ComputationInput, next MiddlewareNextFunc) *ComputationOutput + type MiddlewareNextFunc func(input *ComputationInput) *ComputationOutput + type NonNull struct + Type Type + func (n *NonNull) String() string + type Object struct + Description string + Fields map[string]*Field + Key Resolver + Name string + func (o *Object) String() string + type Query struct + Kind string + Name string + func MustParse(source string, vars map[string]interface{}) *Query + func Parse(source string, vars map[string]interface{}) (*Query, error) + type Resolver func(ctx context.Context, source, args interface{}, selectionSet *SelectionSet) (interface{}, error) + type SafeError struct + func (e SafeError) Error() string + func (e SafeError) SanitizedError() string + type SanitizedError interface + SanitizedError func() string + type Scalar struct + Type string + func (s *Scalar) String() string + type Schema struct + Mutation Type + Query Type + type Selection struct + Alias string + Args interface{} + Name string + SelectionSet *SelectionSet + func Flatten(selectionSet *SelectionSet) []*Selection + type SelectionSet struct + Fragments []*Fragment + Selections []*Selection + type SubscriptionLogger interface + Subscribe func(ctx context.Context, id string, tags map[string]string) + Unsubscribe func(ctx context.Context, id string) + type Type interface + String func() string + type Union struct + Description string + Name string + Types map[string]*Object + func (u *Union) String() string