Versions in this module Expand all Collapse all v0 v0.33.7 Jan 9, 2024 v0.33.1 Jul 21, 2023 Changes in this version + const DEST_BASE32 + const DEST_BASE32_TRUNCATED + const DEST_BASE64 + const DEST_BASE64_BYTES + const DEST_HASH + const DEST_HASH_BYTES + var I2P_KEYSTORE_PATH = i2pdefault + var ONION_KEYSTORE_PATH = tordefault + var OPT_DEFAULTS = sam3.Options_Default + var OPT_HUGE = sam3.Options_Humongous + var OPT_LARGE = sam3.Options_Large + var OPT_MEDIUM = sam3.Options_Medium + var OPT_SMALL = sam3.Options_Small + var OPT_WIDE = sam3.Options_Wide + var SAM_ADDR = "127.0.0.1:7656" + var TLS_KEYSTORE_PATH = tlsdefault + func CloseAllGarlic() + func CloseAllOnion() + func CloseGarlic(tunName string) + func CloseOnion(tunName string) + func CreateTLSCertificate(tlsHost string) error + func DeleteGarlicKeys(tunName string) error + func DeleteI2PKeyStore() error + func DeleteOnionKeys(tunName string) error + func DeleteTLSKeyStore() error + func DeleteTorKeyStore() error + func Dial(network, addr string) (net.Conn, error) + func DialGarlic(network, addr string) (net.Conn, error) + func DialOnion(network, addr string) (net.Conn, error) + func GetJoinedWD(dir string) (string, error) + func I2PKeys(tunName, samAddr string) (i2pkeys.I2PKeys, error) + func I2PKeystorePath() (string, error) + func Listen(network, keys string) (net.Listener, error) + func ListenGarlic(network, keys string) (net.Listener, error) + func ListenOnion(network, keys string) (net.Listener, error) + func NewTLSCertificate(host string, priv *ecdsa.PrivateKey) ([]byte, error) + func NewTLSCertificateAltNames(priv *ecdsa.PrivateKey, hosts ...string) ([]byte, error) + func Proxy(list net.Listener, raddr string) error + func TLSKeys(tlsHost string) (tls.Certificate, error) + func TLSKeystorePath() (string, error) + func TorKeys(keyName string) (ed25519.KeyPair, error) + func TorKeystorePath() (string, error) + type Garlic struct + AddrMode int + ServiceKeys *i2pkeys.I2PKeys + TorrentMode bool + func NewGarlic(tunName, samAddr string, options []string) (*Garlic, error) + func (g *Garlic) Close() error + func (g *Garlic) DeleteKeys() error + func (g *Garlic) Dial(net, addr string) (net.Conn, error) + func (g *Garlic) DialContext(ctx context.Context, net, addr string) (net.Conn, error) + func (g *Garlic) Keys() (*i2pkeys.I2PKeys, error) + func (g *Garlic) Listen(args ...string) (net.Listener, error) + func (g *Garlic) ListenPacket() (net.PacketConn, error) + func (g *Garlic) ListenStream() (net.Listener, error) + func (g *Garlic) ListenTLS(args ...string) (net.Listener, error) + func (g *Garlic) Network() string + func (g *Garlic) NewListener(n, addr string) (net.Listener, error) + func (g *Garlic) OldListen(args ...string) (net.Listener, error) + func (g *Garlic) String() string + func (g *Garlic) TLSKeys() (tls.Certificate, error) + type NullConn struct + func (nc *NullConn) Close() error + func (nc *NullConn) LocalAddr() net.Addr + func (nc *NullConn) Read(b []byte) (n int, err error) + func (nc *NullConn) RemoteAddr() net.Addr + func (nc *NullConn) SetDeadline(t time.Time) error + func (nc *NullConn) SetReadDeadline(t time.Time) error + func (nc *NullConn) SetWriteDeadline(t time.Time) error + func (nc *NullConn) Write(b []byte) (n int, err error) + type Onion struct + func NewOnion(name string) (*Onion, error) + func (g *Onion) DeleteKeys() error + func (o *Onion) Close() error + func (o *Onion) Dial(net, addr string) (net.Conn, error) + func (o *Onion) Keys() (ed25519.KeyPair, error) + func (o *Onion) Listen(args ...string) (net.Listener, error) + func (o *Onion) ListenTLS(args ...string) (net.Listener, error) + func (o *Onion) NewListener(n, addr string) (net.Listener, error) + func (o *Onion) OldListen(args ...string) (net.Listener, error) + func (o *Onion) TLSKeys() (tls.Certificate, error) + type OnrampProxy struct + func (p *OnrampProxy) Proxy(list net.Listener, raddr string) error