config

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUsers

func NewUsers() *userDB

Types

type Config

type Config struct {
	AdTag *string
	// contains filtered or unexported fields
}

func DefaultConfig

func DefaultConfig() *Config

func ReadConfig

func ReadConfig(path string) (*Config, error)

func (*Config) GetAllowIPv6

func (c *Config) GetAllowIPv6() bool

func (*Config) GetDefaultSocks

func (c *Config) GetDefaultSocks() (url, user, pass *string)

func (*Config) GetHost

func (c *Config) GetHost() *string

func (*Config) GetIgnoreTimestamp added in v0.9.3

func (c *Config) GetIgnoreTimestamp() bool

func (*Config) GetListenUrl

func (c *Config) GetListenUrl() []string

func (*Config) GetStatsSock added in v0.9.0

func (c *Config) GetStatsSock() *string

func (*Config) GetUser

func (c *Config) GetUser(user string) (u User, err error)

func (*Config) GetUserSecret

func (c *Config) GetUserSecret(user string) (string, error)

func (*Config) IterateUsers

func (c *Config) IterateUsers() chan *User

type User

type User struct {
	Name        string
	Secret      string
	Obfuscate   *bool
	AdTag       *string
	Socks5      *string
	Socks5_user *string
	Socks5_pass *string
}

Jump to

Keyboard shortcuts

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