config

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteFile

func WriteFile(config *Config, fpath string) error

Types

type Agent

type Agent struct {
	TorBinaryPath  string
	TorrcPath      string
	TorDataDir     string
	TorServicesDir string
	SocksAddr      string
	ControlAddr    string
	ControlCookie  string
	UseTorBrowser  bool
}

type Client

type Client struct {
	Name    string
	Address string
	Auth    string
}

type Config

type Config struct {
	Node Node
	Dir  string
	Path string
}

func NewFile

func NewFile(fpath string) (*Config, error)

func ReadFile

func ReadFile(fpath string) (*Config, error)

type Export added in v0.2.0

type Export struct {
	LocalAddr string
	Port      int
}

type Import

type Import struct {
	LocalAddr  string
	LocalPort  int
	RemotePort int
}

type Node

type Node struct {
	Service Service
	Remotes []Remote
	Agent   Agent
}

type Remote

type Remote struct {
	Name    string
	Address string
	Auth    string
	Imports []Import
}

type Service

type Service struct {
	Exports []Export
	Clients []Client
}

Jump to

Keyboard shortcuts

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