exit

package
v0.0.0-...-67ff7d2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ExitName       string
	ExitIdentifier string
	TimeOut        time.Duration
	EntryServers   []EntryServer
	// DNSServers     []DNSServer
	ExitPrivateKey *crypt.RSAPrivateKey
}

Config defines the configurations of this exit.

func ReadConfig

func ReadConfig(configJSONPath string) *Config

ReadConfig parses the configuration file at proscribed location and returns a pointer to the config parsed, or nil if config invalid or does not exist.

type EntryServer

type EntryServer struct {
	ServerIdentifier string
	ServerPubKey     *crypt.RSAPublicKey
}

EntryServer defines a trusted entry server by this exit.

Jump to

Keyboard shortcuts

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