Files
go-i2p/lib/router

router

-- import "github.com/go-i2p/go-i2p/lib/router"

router.svg

Usage

type Router

type Router struct {
	// keystore for router info
	*keys.RouterInfoKeystore
	// multi-transport manager
	*transport.TransportMuxer
}

i2p router type

func CreateRouter

func CreateRouter(cfg *config.RouterConfig) (*Router, error)

CreateRouter creates a router with the provided configuration

func FromConfig

func FromConfig(c *config.RouterConfig) (r *Router, err error)

create router from configuration

func (*Router) Close

func (r *Router) Close() error

Close closes any internal state and finallizes router resources so that nothing can start up again

func (*Router) Start

func (r *Router) Start()

Start starts router mainloop

func (*Router) Stop

func (r *Router) Stop()

Stop starts stopping internal state of router

func (*Router) Wait

func (r *Router) Wait()

Wait blocks until router is fully stopped

router

github.com/go-i2p/go-i2p/lib/router

go-i2p template file