linkws

package
v0.0.0-...-fc28734 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLogInfo

func InitLogInfo(syncResult *websocket.SyncResults) *log.Logger

func NewClient

func NewClient(config config.NorthWsConfig) (link.Link, error)

Types

type WebsocketClient

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

func (*WebsocketClient) GetFailMsg

func (w *WebsocketClient) GetFailMsg() chan []byte

func (*WebsocketClient) GetLinkID

func (w *WebsocketClient) GetLinkID() string

func (*WebsocketClient) ResultCheck

func (w *WebsocketClient) ResultCheck(syncResults chan *websocket.SyncResults)

func (*WebsocketClient) Send

func (w *WebsocketClient) Send(ctx *comctx.Context, data *link.SendMessage) error

func (*WebsocketClient) SetFailMsg

func (w *WebsocketClient) SetFailMsg(fallMsg chan []byte)

func (*WebsocketClient) SyncSend

func (w *WebsocketClient) SyncSend(ctx *comctx.Context, data []byte) error

Jump to

Keyboard shortcuts

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