graphql_websocket_subscription

package
v1.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Scheme string
	Host   string
	Path   string
	Body   json.RawMessage
	Header http.Header
}

type GraphQLWebsocketSubscriptionStream

type GraphQLWebsocketSubscriptionStream struct {
	// contains filtered or unexported fields
}

func (*GraphQLWebsocketSubscriptionStream) Start

func (g *GraphQLWebsocketSubscriptionStream) Start(input []byte, next chan<- []byte, stop <-chan struct{})

func (*GraphQLWebsocketSubscriptionStream) UniqueIdentifier

func (g *GraphQLWebsocketSubscriptionStream) UniqueIdentifier() []byte

type Subscription

type Subscription struct {
	// contains filtered or unexported fields
}

func (*Subscription) Next

func (s *Subscription) Next(done <-chan struct{}) (data []byte, ok bool)

type WebsocketClient

type WebsocketClient struct {
	// contains filtered or unexported fields
}

func (*WebsocketClient) Close

func (w *WebsocketClient) Close()

func (*WebsocketClient) CloseIfNoSubscriptions

func (w *WebsocketClient) CloseIfNoSubscriptions() (closed bool)

func (*WebsocketClient) Open

func (w *WebsocketClient) Open(url string, header http.Header) (err error)

func (*WebsocketClient) Subscribe

func (w *WebsocketClient) Subscribe(payload []byte) (subscription Subscription, ok bool)

func (*WebsocketClient) Unsubscribe

func (w *WebsocketClient) Unsubscribe(subscription Subscription)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL