onionbox

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2020 License: AGPL-3.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Onionbox

type Onionbox struct {
	OnionURL    string
	RemotePort  int
	LocalPort   int
	TorVersion3 bool
	TorrcFile   string
	Store       *onionstore.OnionStore
	Logger      *log.Logger
	Server      *http.Server
	Debug       bool
}

func (*Onionbox) Init

func (ob *Onionbox) Init(ctx context.Context) (*tor.Tor, *tor.OnionService, error)

func (*Onionbox) Logf

func (ob *Onionbox) Logf(format string, args ...interface{})

Logf is a helper function which will utilize the Logger from ob to print formatted logs.

func (*Onionbox) Quit

func (ob *Onionbox) Quit()

Quit will Quit all stored buffers and exit onionbox.

func (*Onionbox) Router

func (ob *Onionbox) Router(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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