Documentation
¶
Index ¶
- Constants
- func SimpleSelector(n node.Nodes, exit *node.Node, count int) (selected node.Nodes)
- type Client
- func (cl *Client) Cleanup()
- func (cl *Client) FindCloaked(clk cloak.PubKey) (hdr *prv.Key, pld *prv.Key)
- func (cl *Client) RegisterConfirmation(hook confirm.Hook, cnf nonce.ID)
- func (cl *Client) Send(addr *netip.AddrPort, b slice.Bytes)
- func (cl *Client) SendKeys(nodeID nonce.ID, hook func(cf nonce.ID)) (confirmation nonce.ID, hdr, pld *prv.Key, e error)
- func (cl *Client) Shutdown()
- func (cl *Client) Start()
Constants ¶
View Source
const ( DefaultDeadline = 10 * time.Minute ReverseLayerLen = reverse.Len + layer.Len ReverseHeaderLen = 3 * ReverseLayerLen )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
*node.Node
node.Nodes
// *address.SendCache
// *address.ReceiveCache
session.Sessions
PendingSessions []nonce.ID
*confirm.Confirms
ExitHooks response.Hooks
sync.Mutex
*signer.KeySet
atomic.Bool
qu.C
}
func (*Client) FindCloaked ¶
FindCloaked searches the client identity key and the Sessions for a match.
func (*Client) RegisterConfirmation ¶
Click to show internal directories.
Click to hide internal directories.