Versions in this module Expand all Collapse all v0 v0.32.9 Nov 14, 2024 v0.32.8 Nov 13, 2024 Changes in this version + const ResultCantReachPeer + const ResultDuplicatedDest + const ResultDuplicatedID + const ResultI2PError + const ResultInvalidKey + const ResultKeyNotFound + const ResultOk + const ResultPeerNotFound + const ResultTimeout + var SAMsigTypes = []string + var ValidSAMCommands = []string + func NewID() int32 + func NewReadHexLogger(prefix string, r io.Reader) io.Reader + func NewReadLogger(prefix string, r io.Reader) io.Reader + func NewWriteLogger(prefix string, w io.Writer) io.Writer + 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 SetCompression(b bool) func(*Client) error + func SetDebug(b bool) func(*Client) error + func SetEncrypt(b bool) func(*Client) error + func SetFromPort(s string) func(*Client) error + func SetFromPortInt(i int) 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 SetLeaseSetEncType(b string) func(*Client) error + func SetLocalDestination(s string) 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 SetPass(s string) 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 SetSAMMaxVersion(i int) func(*Client) error + func SetSAMMinVersion(i int) func(*Client) error + func SetSignatureType(s string) func(*Client) error + func SetToPort(s string) func(*Client) error + func SetToPortInt(i int) func(*Client) error + func SetUnpublished(b bool) func(*Client) error + func SetUser(s string) func(*Client) error + func WrapRWC(c io.ReadWriteCloser) io.ReadWriteCloser + type Client struct + SamConn net.Conn + SamDGConn net.PacketConn + 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) AcceptI2P() (net.Conn, error) + func (c *Client) Base32() string + func (c *Client) Base64() string + func (c *Client) Close() error + func (c *Client) CreateDatagramSession(dest string) (string, error) + func (c *Client) CreateRawSession(dest string) (string, error) + func (c *Client) CreateSession(style, dest string) (string, error) + func (c *Client) CreateStreamSession(dest string) (string, error) + func (c *Client) Destination() string + func (c *Client) Dial(network, addr string) (net.Conn, error) + func (c *Client) DialContext(ctx context.Context, network, addr string) (net.Conn, error) + func (c *Client) DialContextFree(network, addr string) (net.Conn, error) + func (c *Client) DialDatagramContextFree(addr string) (*DatagramConn, error) + func (c *Client) DialStreamingContextFree(addr string) (net.Conn, error) + func (c *Client) Listen() (net.Listener, error) + func (c *Client) ListenI2P(dest string) (net.Listener, error) + func (c *Client) Lookup(name string) (string, error) + func (c *Client) NewClient(id int32) (*Client, error) + func (c *Client) NewDestination(kind ...string) (string, string, error) + func (c *Client) NewID() int32 + func (c *Client) Print() string + func (c *Client) RemoveAuthUser(user string) error + func (c *Client) Resolve(ctx context.Context, name string) (context.Context, net.IP, error) + func (c *Client) SetupAuth(user, password string) error + func (c *Client) StreamAccept() (*Reply, error) + func (c *Client) StreamConnect(dest string) error + func (c *Client) TeardownAuth() error + func (p *Client) Addr() net.Addr + func (p *Client) ID() string + func (p *Client) LocalAddr() net.Addr + func (p *Client) PrivateAddr() i2pkeys.I2PKeys + type Conn struct + func WrapConn(c net.Conn) *Conn + func WrapPacketConn(c net.Conn) *Conn + func (c *Conn) LocalAddr() net.Addr + func (c *Conn) RemoteAddr() net.Addr + func (c *Conn) SetDeadline(t time.Time) error + func (c *Conn) SetReadDeadline(t time.Time) error + func (c *Conn) SetWriteDeadline(t time.Time) error + type DatagramConn struct + RAddr net.Addr + func (d *DatagramConn) Close() error + func (d *DatagramConn) LocalAddr() net.Addr + func (d *DatagramConn) Read(b []byte) (n int, err error) + func (d *DatagramConn) ReadFrom(p []byte) (n int, addr net.Addr, err error) + func (d *DatagramConn) RemoteAddr() net.Addr + func (d *DatagramConn) SetDeadline(t time.Time) error + func (d *DatagramConn) SetReadDeadline(t time.Time) error + func (d *DatagramConn) SetWriteDeadline(t time.Time) error + func (d *DatagramConn) Write(b []byte) (n int, err error) + func (d *DatagramConn) WriteTo(p []byte, addr net.Addr) (n int, err error) + type Option func(*Client) error + type RWC struct + func (c *RWC) Close() error + type Reply struct + From string + Pairs map[string]string + To string + Topic string + Type string + type ReplyError struct + Reply *Reply + Result string + func (r ReplyError) Error() string