Versions in this module Expand all Collapse all v0 v0.0.2 Sep 9, 2024 Changes in this version + func AddSubscriptionError(ctx context.Context, err *gqlerror.Error) + func AppendCloseReason(ctx context.Context, reason string) context.Context + func SendError(w http.ResponseWriter, code int, errors ...*gqlerror.Error) + func SendErrorf(w http.ResponseWriter, code int, format string, args ...any) + type GET struct + ResponseHeaders map[string][]string + func (h GET) Do(w http.ResponseWriter, r *http.Request, exec graphql.GraphExecutor) + func (h GET) Supports(r *http.Request) bool + type GRAPHQL struct + ResponseHeaders map[string][]string + func (h GRAPHQL) Do(w http.ResponseWriter, r *http.Request, exec graphql.GraphExecutor) + func (h GRAPHQL) Supports(r *http.Request) bool + type InitPayload map[string]any + func GetInitPayload(ctx context.Context) InitPayload + func (p InitPayload) Authorization() string + func (p InitPayload) GetString(key string) string + type MultipartForm struct + MaxMemory int64 + MaxUploadSize int64 + ResponseHeaders map[string][]string + func (f MultipartForm) Do(w http.ResponseWriter, r *http.Request, exec graphql.GraphExecutor) + func (f MultipartForm) Supports(r *http.Request) bool + type Options struct + AllowedMethods []string + func (o Options) Do(w http.ResponseWriter, r *http.Request, exec graphql.GraphExecutor) + func (o Options) Supports(r *http.Request) bool + type POST struct + ResponseHeaders map[string][]string + func (h POST) Do(w http.ResponseWriter, r *http.Request, exec graphql.GraphExecutor) + func (h POST) Supports(r *http.Request) bool + type SSE struct + func (t SSE) Do(w http.ResponseWriter, r *http.Request, exec graphql.GraphExecutor) + func (t SSE) Supports(r *http.Request) bool + type UrlEncodedForm struct + ResponseHeaders map[string][]string + func (h UrlEncodedForm) Do(w http.ResponseWriter, r *http.Request, exec graphql.GraphExecutor) + func (h UrlEncodedForm) Supports(r *http.Request) bool + type Websocket struct + CloseFunc WebsocketCloseFunc + ErrorFunc WebsocketErrorFunc + InitFunc WebsocketInitFunc + InitTimeout time.Duration + KeepAlivePingInterval time.Duration + MissingPongOk bool + PingPongInterval time.Duration + PongOnlyInterval time.Duration + Upgrader websocket.Upgrader + func (t Websocket) Do(w http.ResponseWriter, r *http.Request, exec graphql.GraphExecutor) + func (t Websocket) Supports(r *http.Request) bool + type WebsocketCloseFunc func(ctx context.Context, closeCode int) + type WebsocketError struct + Err error + IsReadError bool + func (e WebsocketError) Error() string + type WebsocketErrorFunc func(ctx context.Context, err error) + type WebsocketInitFunc func(ctx context.Context, initPayload InitPayload) (context.Context, *InitPayload, error)