sender

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAcknowledgesHolder

func NewAcknowledgesHolder() *acknowledgesHolder

NewAcknowledgesHolder returns a new instance of acknowledgesHolder

func NewWebSocketSender

func NewWebSocketSender(args WebSocketSenderArgs) (*webSocketSender, error)

NewWebSocketSender returns a new instance of webSocketSender

func NewWebsocketClientAcknowledgesHolder

func NewWebsocketClientAcknowledgesHolder() *websocketClientAcknowledgesHolder

NewWebsocketClientAcknowledgesHolder will return a new instance of websocketAcknowledgesHolder

func NewWebsocketClientsHolder

func NewWebsocketClientsHolder() *websocketClientsHolder

NewWebsocketClientsHolder will return a new instance of websocketClientsHolder

Types

type HttpServerHandler

type HttpServerHandler interface {
	ListenAndServe() error
	Shutdown(ctx context.Context) error
}

HttpServerHandler defines the minimum behaviour of a http server

type Uint64ByteSliceConverter

type Uint64ByteSliceConverter interface {
	ToByteSlice(uint64) []byte
	ToUint64([]byte) (uint64, error)
	IsInterfaceNil() bool
}

Uint64ByteSliceConverter converts byte slice to/from uint64

type WebSocketSenderArgs

type WebSocketSenderArgs struct {
	Server                   HttpServerHandler
	Uint64ByteSliceConverter Uint64ByteSliceConverter
	WithAcknowledge          bool
	Log                      core.Logger
}

WebSocketSenderArgs holds the arguments needed for creating a new instance of webSocketSender

Jump to

Keyboard shortcuts

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