Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var I2PType = "i2pgate"
I2PType will be used to identify this as the i2p gateway plugin to things that use it.
Functions ¶
This section is empty.
Types ¶
type I2PGatePlugin ¶
type I2PGatePlugin struct {
// contains filtered or unexported fields
}
I2PGatePlugin is a structure containing information which is used for setting up an i2p tunnel that connects an IPFS gateway to a tunnel over i2p.
func Setup ¶
func Setup() (*I2PGatePlugin, error)
Setup creates an I2PGatePlugin and config file, but it doesn't start any tunnels.
func (*I2PGatePlugin) Close ¶
func (*I2PGatePlugin) Close() error
Close satisfies the Daemon plugin interface
func (*I2PGatePlugin) I2PTypeName ¶
func (*I2PGatePlugin) I2PTypeName() string
I2PTypeName returns I2PType
func (*I2PGatePlugin) Init ¶
func (i *I2PGatePlugin) Init() error
Init initializes plugin, satisfying the plugin.Plugin interface. Put any initialization logic here.
func (*I2PGatePlugin) Name ¶
func (*I2PGatePlugin) Name() string
Name returns the plugin's name, satisfying the plugin.Plugin interface.
func (*I2PGatePlugin) Start ¶
func (i *I2PGatePlugin) Start(coreiface.CoreAPI) error
Start starts the tunnels and also satisfies the Daemon plugin interface
func (*I2PGatePlugin) Version ¶
func (*I2PGatePlugin) Version() string
Version returns the plugin's version, satisfying the plugin.Plugin interface.