adshao_binance

package
v0.0.0-...-ea1cebd Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WSServe

func WSServe(ctx context.Context, cfg *WSConfig, lg *zap.Logger) (<-chan WSMessage, error)

WSServe TODO: look to utils package and take implementation from it

Types

type WSConfig

type WSConfig struct {
	Endpoint  string
	KeepAlive bool
	Timeout   time.Duration
}

WSConfig webservice configuration

type WSMessage

type WSMessage struct {
	Payload             []byte
	DisconnectedWithErr error
}

Jump to

Keyboard shortcuts

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