websockets

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 16 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) BatchDeliveryRequest added in v1.3.0

func (ws *WebSockets) BatchDeliveryRequest(ctx context.Context, connID string, sub *core.Subscription, events []*core.CombinedEventDataDelivery) error

func (*WebSockets) Capabilities

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

func (*WebSockets) DeliveryRequest

func (ws *WebSockets) DeliveryRequest(ctx context.Context, connID string, sub *core.Subscription, event *core.EventDelivery, data core.DataArray) error

func (*WebSockets) GetStatus added in v1.0.0

func (ws *WebSockets) GetStatus() *core.WebSocketStatus

func (*WebSockets) Init

func (ws *WebSockets) Init(ctx context.Context, config config.Section) error

func (*WebSockets) InitConfig added in v1.1.0

func (ws *WebSockets) InitConfig(config config.Section)

func (*WebSockets) Name

func (ws *WebSockets) Name() string

func (*WebSockets) NamespaceRestarted added in v1.3.0

func (ws *WebSockets) NamespaceRestarted(ns string, startTime time.Time)

func (*WebSockets) ServeHTTP

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

func (*WebSockets) ServeHTTPNamespaced added in v1.3.0

func (ws *WebSockets) ServeHTTPNamespaced(namespace string, res http.ResponseWriter, req *http.Request)

func (*WebSockets) SetAuthorizer added in v1.1.0

func (ws *WebSockets) SetAuthorizer(auth core.Authorizer)

func (*WebSockets) SetHandler added in v1.1.0

func (ws *WebSockets) SetHandler(namespace string, handler events.Callbacks) error

func (*WebSockets) ValidateOptions

func (ws *WebSockets) ValidateOptions(ctx context.Context, options *core.SubscriptionOptions) error

func (*WebSockets) WaitClosed

func (ws *WebSockets) WaitClosed()

type WebSocketsNamespaced added in v1.3.0

type WebSocketsNamespaced interface {
	ServeHTTPNamespaced(namespace string, res http.ResponseWriter, req *http.Request)
}

Jump to

Keyboard shortcuts

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