Documentation ¶
Index ¶
- func GenerateTorKeys(file string) (*ed25519.PrivateKey, error)
- type I2POnionService
- func (ios *I2POnionService) KeysPath() string
- func (ios *I2POnionService) Listen(net, addr string) (net.Listener, error)
- func (ios *I2POnionService) ListenAndServe() error
- func (ios *I2POnionService) Serve(l net.Listener) error
- func (ios *I2POnionService) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (ios *I2POnionService) StandardHTML() string
- func (ios *I2POnionService) UnpackSite() error
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) 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
Click to show internal directories.
Click to hide internal directories.