Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { ConnCloseCh chan struct{} // contains filtered or unexported fields }
Client ...
func (Client) SendWithResponse ¶
func (c Client) SendWithResponse(ctx context.Context, data []byte) (packets.SendResponsePayload, error)
SendWithResponse sends a data and waits for response
type Config ¶
type Config struct { // ClientID // // Required ClientID string // Ed25519 Public key // // Required PublicKey ed25519.PublicKey // Ed25519 Private key // // Required PrivateKey ed25519.PrivateKey // Hostname of where broker should listen // // Default: "localhost" Hostname string // Port of where broker should listen // // Default: "997" Port uint32 }
Config ...
Click to show internal directories.
Click to hide internal directories.