client

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GlobalConfig = &Config{
		SockAddr:  "127.0.0.1:1080",
		LogFile:   "logs/shuttlec.log",
		SSLEnable: true,
	}
)

global config

Functions

This section is empty.

Types

type Config

type Config struct {
	RunType    string `yaml:"runType"`
	Name       string `yaml:"name"`
	SockAddr   string `yaml:"sockAddr"`
	RemoteAddr string `yaml:"remoteAddr"`
	SSLEnable  bool   `yaml:"sslEnable"`
	Password   string `yaml:"password"`
	LogFile    string `yaml:"logFile"`

	Ships []Ship
}

Config struct

func Load

func Load(path string) (config *Config, err error)

Load load config

func (*Config) GetHash added in v0.2.0

func (c *Config) GetHash() string

func (*Config) IsSocks added in v0.2.0

func (c *Config) IsSocks() bool

func (*Config) IsWormhole added in v0.2.0

func (c *Config) IsWormhole() bool

type Ship added in v0.2.0

type Ship struct {
	Name       string
	RemoteAddr string `yaml:"remoteAddr"`
	LocalAddr  string `yaml:"localAddr"`
}

Jump to

Keyboard shortcuts

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