httpd

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2021 License: GPL-3.0 Imports: 29 Imported by: 0

Documentation

Overview

Package httpd implements the tor network service.

Index

Constants

This section is empty.

Variables

View Source
var ErrServiceClosed = errors.New("httpd: Service closed")

ErrServiceClosed is returned by the Service's Serve method after a call to Shutdown.

Functions

This section is empty.

Types

type Tor

type Tor struct {
	// contains filtered or unexported fields
}

Tor represents a Tor service in the application.

func New

func New(ctx context.Context, store *storage.Storage, pool pooling.Pool) *Tor

New tor struct.

func (*Tor) Serve

func (t *Tor) Serve() error

Serve accepts incoming HTTP requests over Tor network, or open a local port for proxy server by "WAYBACK_TOR_LOCAL_PORT" env. Use "WAYBACK_TOR_PRIVKEY" to keep the Tor hidden service hostname.

Serve always returns an error.

func (*Tor) Shutdown added in v0.16.0

func (t *Tor) Shutdown() error

Shutdown shuts down the Tor server

Jump to

Keyboard shortcuts

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