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