Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ConnectionContextKey is the key for keeping the connection reference on // the context. ConnectionContextKey graphqlWSContextKey = "connection" // SubscriptionContextKey is the key for keeping the subscription reference // on the context. SubscriptionContextKey graphqlWSContextKey = "subscription" )
Functions ¶
This section is empty.
Types ¶
type Dialer ¶
Dialer is responsible for creating new redis connections.
As connections are being used for subscriptions, it won't be pooled.
type SubscriptionHandler ¶
type SubscriptionHandler interface { graphqlws.SubscriptionStartHandler graphqlws.SubscriptionStopHandler graphqlws.WebsocketCloseHandler }
func NewSubscriptionHandler ¶
func NewSubscriptionHandler(conn *graphqlws.Conn, dialer Dialer) SubscriptionHandler
NewSubscriptionHandler returns a new instance of a `SubscriptionHandler` that will add the logic for registering
Click to show internal directories.
Click to hide internal directories.