Documentation ¶
Index ¶
- Variables
- func Connect(ctx context.Context, ws wsConnection, service GraphQLService, ...) func()
- func NewHandlerFunc(svc GraphQLService, httpHandler http.Handler) http.HandlerFunc
- func ReadLimit(limit int64) func(conn *connection)
- func WriteTimeout(d time.Duration) func(conn *connection)
- type ContextKey
- type GraphQLService
Constants ¶
This section is empty.
Variables ¶
View Source
var ContextKeyHTTPHeader = ContextKey{}
ContextKeyHTTPHeader context key for http header
Functions ¶
func Connect ¶
func Connect(ctx context.Context, ws wsConnection, service GraphQLService, options ...func(conn *connection)) func()
Connect implements the apollographql subscriptions-transport-ws protocol@v0.9.4 https://github.com/apollographql/subscriptions-transport-ws/blob/v0.9.4/PROTOCOL.md
func NewHandlerFunc ¶
func NewHandlerFunc(svc GraphQLService, httpHandler http.Handler) http.HandlerFunc
NewHandlerFunc returns an http.HandlerFunc that supports GraphQL over websockets
func ReadLimit ¶
func ReadLimit(limit int64) func(conn *connection)
ReadLimit limits the maximum size of incoming messages
func WriteTimeout ¶
WriteTimeout sets a timeout for outgoing messages
Types ¶
Click to show internal directories.
Click to hide internal directories.