Documentation ¶
Overview ¶
Package brokerc provides functionality to create a Broker Client
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { // Connect to peer by ID ConnectPeerById func(peerId string, mode p2p.ConnectionMode) (conn *p2pc.Connection, err error) // Connect to peer by Tag ConnectPeerByTag func(tag string, mode p2p.ConnectionMode) (conn *p2pc.Connection, err error) // Client exit channel Exit chan bool // contains filtered or unexported fields }
Broker Client
func New ¶
func New( config Config, connectionHandler p2pc.NewConnectionHandler, streamHandler udp.StreamHandler, ) (c *Client, err error)
Create Client
Click to show internal directories.
Click to hide internal directories.