i2pbootstrap

package
v0.0.0-...-c0a6801 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2019 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL