websockets

package
v0.0.0-...-93e01a0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ReadBufferSize is the read buffer size for the socket
	ReadBufferSize = "readBufferSize"
	// WriteBufferSize is the write buffer size for the socket
	WriteBufferSize = "writeBufferSize"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type WebSockets

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

func (*WebSockets) Capabilities

func (ws *WebSockets) Capabilities() *events.Capabilities

func (*WebSockets) ChangeEvent

func (ws *WebSockets) ChangeEvent(connID string, ce *fftypes.ChangeEvent)

func (*WebSockets) DeliveryRequest

func (ws *WebSockets) DeliveryRequest(connID string, sub *fftypes.Subscription, event *fftypes.EventDelivery, data []*fftypes.Data) error

func (*WebSockets) GetOptionsSchema

func (ws *WebSockets) GetOptionsSchema(ctx context.Context) string

func (*WebSockets) Init

func (ws *WebSockets) Init(ctx context.Context, prefix config.Prefix, callbacks events.Callbacks) error

func (*WebSockets) InitPrefix

func (ws *WebSockets) InitPrefix(prefix config.Prefix)

func (*WebSockets) Name

func (ws *WebSockets) Name() string

func (*WebSockets) ServeHTTP

func (ws *WebSockets) ServeHTTP(res http.ResponseWriter, req *http.Request)

func (*WebSockets) ValidateOptions

func (ws *WebSockets) ValidateOptions(options *fftypes.SubscriptionOptions) error

func (*WebSockets) WaitClosed

func (ws *WebSockets) WaitClosed()

Jump to

Keyboard shortcuts

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