client

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: GPL-3.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func (c *Config) GetHash() string

func (*Config) IsSocks

func (c *Config) IsSocks() bool

func (*Config) IsWormhole

func (c *Config) IsWormhole() bool

type Ship

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