conf

package
v0.0.0-...-d537834 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIConfig

type APIConfig struct {
	Enabled bool   `json:"enabled"`
	APIHost string `json:"api_addr"`
	APIPort int    `json:"api_port"`

	APIAddress *common.Address
}

type GlobalConfig

type GlobalConfig struct {
	LogLevel   int        `json:"log_level"`
	LogFile    string     `json:"log_file"`
	LocalHost  string     `json:"local_addr"`
	LocalPort  int        `json:"local_port"`
	RemoteHost string     `json:"remote_addr"`
	RemotePort int        `json:"remote_port"`
	BufferSize int        `json:"buffer_size"`
	Psk        string     `json:"psk"`
	Obfs       ObfsConfig `json:"obfs"`
	API        APIConfig  `json:"api"`

	LocalAddress  *common.Address
	RemoteAddress *common.Address
	Hash          map[string]string
}

func ParseJSON

func ParseJSON(data []byte) (*GlobalConfig, error)

type ObfsConfig

type ObfsConfig struct {
	ObfsType string `json:"obfs_type"`
	ObfsHost string `json:"obfs_host"`
}

type RunType

type RunType string
const (
	Client RunType = "client"
)

Jump to

Keyboard shortcuts

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