Versions in this module Expand all Collapse all v0 v0.10.4 Apr 28, 2020 Changes in this version + const DefaultCacheSize + const DefaultConnectionKeepAlivePingInterval + const DefaultUploadMaxMemory + const DefaultUploadMaxSize + func GraphQL(exec graphql.ExecutableSchema, options ...Option) http.HandlerFunc + func Playground(title string, endpoint string) http.HandlerFunc + type Config struct + type InitPayload map[string]interface + func (payload InitPayload) Authorization() string + func (payload InitPayload) GetString(key string) string + func GetInitPayload(ctx context.Context) InitPayload + type Option func(cfg *Config) + func CacheSize(size int) Option + func ComplexityLimit(limit int) Option + func ComplexityLimitFunc(complexityLimitFunc graphql.ComplexityLimitFunc) Option + func EnablePersistedQueryCache(cache PersistedQueryCache) Option + func ErrorPresenter(f graphql.ErrorPresenterFunc) Option + func IntrospectionEnabled(enabled bool) Option + func RecoverFunc(recover graphql.RecoverFunc) Option + func RequestMiddleware(middleware graphql.RequestMiddleware) Option + func ResolverMiddleware(middleware graphql.FieldMiddleware) Option + func Tracer(tracer graphql.Tracer) Option + func UploadMaxMemory(size int64) Option + func UploadMaxSize(size int64) Option + func WebsocketInitFunc(websocketInitFunc websocketInitFunc) Option + func WebsocketKeepAliveDuration(duration time.Duration) Option + func WebsocketUpgrader(upgrader websocket.Upgrader) Option + type PersistedQueryCache interface + Add func(ctx context.Context, hash string, query string) + Get func(ctx context.Context, hash string) (string, bool)