client

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client added in v1.0.9

type Client interface {
	Close()
	Connect()
	GetConnId() string
	HandleInputFrom(source *os.File, handler func(*os.File))
	Send(message string)
	SendError(err error)
}

type TcpClient added in v1.0.9

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

func NewTcpClient added in v1.0.9

func NewTcpClient(ctx context.Context, address string) *TcpClient

func (*TcpClient) Close added in v1.0.9

func (ws *TcpClient) Close()

func (*TcpClient) Connect added in v1.0.9

func (ws *TcpClient) Connect()

func (*TcpClient) GetConnId added in v1.0.9

func (ws *TcpClient) GetConnId() string

func (*TcpClient) HandleInputFrom added in v1.0.9

func (ws *TcpClient) HandleInputFrom(source *os.File, handler func(*os.File))

func (*TcpClient) Send added in v1.0.9

func (ws *TcpClient) Send(message string)

func (*TcpClient) SendError added in v1.0.9

func (ws *TcpClient) SendError(err error)

type WsClient

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

func NewWsClient

func NewWsClient(ctx context.Context, address string) *WsClient

func (*WsClient) Close

func (ws *WsClient) Close()

func (*WsClient) Connect

func (ws *WsClient) Connect()

func (*WsClient) GetConnId

func (ws *WsClient) GetConnId() string

func (*WsClient) HandleInputFrom added in v1.0.9

func (ws *WsClient) HandleInputFrom(source *os.File, handler func(*os.File))

func (*WsClient) Send

func (ws *WsClient) Send(message string)

func (*WsClient) SendError added in v1.0.9

func (ws *WsClient) SendError(err error)

Jump to

Keyboard shortcuts

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