tordir

package
v0.0.0-...-5cd2b2d Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2015 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Descriptor

type Descriptor struct {
	// Router definition
	Nickname string
	Address  net.IP
	ORPort   uint16
	DirPort  uint16

	BandwidthAvg, BandwidthBurst, BandwidthObserved int
	Platform                                        string
	LastPublished                                   time.Time
	Fingerprint                                     string
	Hibernating                                     bool
	UptimeStart                                     time.Time
	NTORKey                                         []byte
	SigningKey, OnionKey                            openssl.PrivateKey
	Accept, Reject, IPv6Policy                      string
	Contact                                         string
	Family                                          []string
	ReadHistory, WriteHistory                       []string
	EventDNS                                        bool
	CachesExtraInfo                                 bool
	ExtraInfoDigest                                 string
	HiddenServiceDir                                int
	AllowSingleHopExits                             bool
	ORAddress                                       []string
	GeoIPDBDigest                                   string
	GeoIP6DBDigest                                  string
	ExitPolicy                                      string
}

func (*Descriptor) Publish

func (d *Descriptor) Publish(address string) error

func (*Descriptor) SignedDescriptor

func (d *Descriptor) SignedDescriptor() (string, error)

func (*Descriptor) Validate

func (d *Descriptor) Validate() error

Jump to

Keyboard shortcuts

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