config

package
v0.0.0-...-83cd8b3 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseProxies

func ParseProxies(cfg *RawConfig) (proxies map[string]C.Proxy, err error)

Types

type CFG

type CFG struct {
	V2boardDomain string `yaml:"v2BoardDomain"`
	OriginIP      string `yaml:"originIP"`
	Connections   int    `yaml:"connections"`
	FilterNode    bool   `yaml:"filterNode"`
}
var Cfg CFG

type RawConfig

type RawConfig struct {
	Proxy []map[string]interface{} `yaml:"proxies"`
}

func UnmarshalRawConfig

func UnmarshalRawConfig(buf []byte) (*RawConfig, error)

Jump to

Keyboard shortcuts

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