i2pgate

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2019 License: MIT Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

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

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.

Jump to

Keyboard shortcuts

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