i2pdotonion

package
v0.0.0-...-943de35 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateTorKeys

func GenerateTorKeys(file string) (*ed25519.PrivateKey, error)

Types

type I2POnionService

type I2POnionService struct {
	OnionService net.Listener
	ServeDir     string
	Keys         crypto.PrivateKey
}

func NewOnionService

func NewOnionService(dir string) (*I2POnionService, error)

func (*I2POnionService) KeysPath

func (ios *I2POnionService) KeysPath() string

func (*I2POnionService) Listen

func (ios *I2POnionService) Listen(net, addr string) (net.Listener, error)

func (*I2POnionService) ListenAndServe

func (ios *I2POnionService) ListenAndServe() error

func (*I2POnionService) Serve

func (ios *I2POnionService) Serve(l net.Listener) error

func (*I2POnionService) ServeHTTP

func (ios *I2POnionService) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*I2POnionService) StandardHTML

func (ios *I2POnionService) StandardHTML() string

func (*I2POnionService) UnpackSite

func (ios *I2POnionService) UnpackSite() error

Jump to

Keyboard shortcuts

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