Documentation ¶
Overview ¶
* i2p connector
Index ¶
- Constants
- type Base32Addr
- type I2PAddr
- type I2PConn
- func (c *I2PConn) Close() error
- func (c *I2PConn) LocalAddr() net.Addr
- func (c *I2PConn) Read(d []byte) (n int, err error)
- func (c *I2PConn) RemoteAddr() net.Addr
- func (c *I2PConn) SetDeadline(t time.Time) error
- func (c *I2PConn) SetReadDeadline(t time.Time) error
- func (c *I2PConn) SetWriteDeadline(t time.Time) error
- func (c *I2PConn) Write(d []byte) (n int, err error)
- type Keyfile
- type Session
Constants ¶
View Source
const DEFAULT_ADDRESS = "127.0.0.1:7656"
default address of i2p interface
View Source
const DEFAULT_KEYFILE = "xd-privkey.dat"
default path to private keys
View Source
const DEFAULT_NAME = "XD"
default i2p session name
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type I2PConn ¶
type I2PConn struct {
// contains filtered or unexported fields
}
tcp/i2p connection implements net.Conn
func (*I2PConn) SetReadDeadline ¶
implements net.Conn
func (*I2PConn) SetWriteDeadline ¶
implements net.Conn
type Keyfile ¶
type Keyfile struct {
// contains filtered or unexported fields
}
a destination keypair file
type Session ¶
type Session interface { // get session name Name() string // open a new control socket // does handshaske OpenControlSocket() (net.Conn, error) // get printable b32.i2p address B32Addr() string // implements network.Network Addr() net.Addr // implements network.Network Accept() (net.Conn, error) // implements network.Session Lookup(name string, port int) (net.Addr, error) // lookup an i2p address LookupI2P(name string) (I2PAddr, error) // implements network.Network Dial(n, a string) (net.Conn, error) // dial out to a remote destination DialI2P(a I2PAddr) (net.Conn, error) // open the session, generate keys, start up destination etc Open() error // close the session Close() error }
i2p network session
Click to show internal directories.
Click to hide internal directories.