861 B
861 B
router
-- import "github.com/go-i2p/go-i2p/lib/router"
Usage
type Router
type Router struct {
}
i2p router type
func CreateRouter
func CreateRouter() (r *Router, err error)
create router with default 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