Versions in this module Expand all Collapse all v0 v0.1.0 Aug 21, 2018 Changes in this version + const ResultCantReachPeer + const ResultDuplicatedDest + const ResultDuplicatedID + const ResultI2PError + const ResultInvalidKey + const ResultKeyNotFound + const ResultOk + const ResultPeerNotFound + const ResultTimeout + func SetAddr(s ...string) func(*Client) error + func SetAddrMixed(s string, i int) func(*Client) error + func SetCloseIdle(b bool) func(*Client) error + func SetCloseIdleTime(u uint) func(*Client) error + func SetDebug(b bool) func(*Client) error + func SetEncrypt(b bool) func(*Client) error + func SetHost(s string) func(*Client) error + func SetInBackups(u uint) func(*Client) error + func SetInLength(u uint) func(*Client) error + func SetInQuantity(u uint) func(*Client) error + func SetInVariance(i int) func(*Client) error + func SetOutBackups(u uint) func(*Client) error + func SetOutLength(u uint) func(*Client) error + func SetOutQuantity(u uint) func(*Client) error + func SetOutVariance(i int) func(*Client) error + func SetPort(s string) func(*Client) error + func SetPortInt(i int) func(*Client) error + func SetReduceIdle(b bool) func(*Client) error + func SetReduceIdleQuantity(u uint) func(*Client) error + func SetReduceIdleTime(u uint) func(*Client) error + func SetUnpublished(b bool) func(*Client) error + type Client struct + SamConn net.Conn + func NewClient(addr string) (*Client, error) + func NewClientFromOptions(opts ...func(*Client) error) (*Client, error) + func NewDefaultClient() (*Client, error) + func (c *Client) Accept() (net.Conn, error) + func (c *Client) Close() error + func (c *Client) CreateStreamSession(dest string) (int32, string, error) + func (c *Client) Dial(network, addr string) (net.Conn, error) + func (c *Client) Lookup(name string) (string, error) + func (c *Client) StreamAccept(id int32) (*Reply, error) + func (c *Client) StreamConnect(id int32, dest string) error + type Option func(*Client) error + type Reply struct + Pairs map[string]string + Topic string + Type string + type ReplyError struct + Reply *Reply + Result string + func (r ReplyError) Error() string