Documentation
¶
Index ¶
- Constants
- type Client
- func (cl *Client) Cleanup()
- func (cl *Client) FindCloaked(clk cloak.PubKey) (hdr *prv.Key, pld *prv.Key, sess *session.Session)
- 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 confirm.Hook) (conf nonce.ID, 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 ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
*node.Node
node.Nodes
session.Sessions
PendingSessions []nonce.ID
*confirm.Confirms
ExitHooks response.Hooks
sync.Mutex
*signer.KeySet
atomic.Bool
qu.C
}
func (*Client) Cleanup ¶
func (cl *Client) Cleanup()
Cleanup closes and flushes any resources the client opened that require sync in order to reopen correctly.
func (*Client) FindCloaked ¶
FindCloaked searches the client identity key and the Sessions for a match. It returns the session as well, though not all users of this function will need this.
func (*Client) RegisterConfirmation ¶
func (*Client) SendKeys ¶
SendKeys is the delivery of a ...
todo: this function should be requiring input of keys, and a related prior
function that generates the preimage for an LN AMP, from the hash of the keys.
Click to show internal directories.
Click to hide internal directories.