net

package
v0.0.0-...-45dee4b Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpClient

type HttpClient struct {
	Skip bool
	// contains filtered or unexported fields
}

func (*HttpClient) Execute

func (c *HttpClient) Execute(method string, url string, body []byte, header http.Header) (data []byte, err error)

func (*HttpClient) Init

func (c *HttpClient) Init() *HttpClient

type WebsocketClient

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

func (*WebsocketClient) Execute

func (c *WebsocketClient) Execute(cmd *proto.ExecuteCommand, res *proto.ExecuteResult) (callback chan byte, err error)

func (*WebsocketClient) Init

func (c *WebsocketClient) Init(endpoint string, secure *uint32, token string) *WebsocketClient

func (*WebsocketClient) Secure

func (c *WebsocketClient) Secure() uint32

func (*WebsocketClient) Start

func (c *WebsocketClient) Start(connections int) (err error)

type WebsocketConnection

type WebsocketConnection struct {
	ID string

	sync.Mutex
	// contains filtered or unexported fields
}

func (*WebsocketConnection) Close

func (c *WebsocketConnection) Close() (err error)

func (*WebsocketConnection) Dial

func (c *WebsocketConnection) Dial() (err error)

func (*WebsocketConnection) Init

func (*WebsocketConnection) PromiseID

func (c *WebsocketConnection) PromiseID() (ID string)

type WebsocketPromise

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

func (*WebsocketPromise) Init

Jump to

Keyboard shortcuts

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