conf

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

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackendConfig

type BackendConfig struct {
	MaxIdleConnsPerHost int
	ProbePath           string
	BackendServer       []string
	ProbeSample         int
}

type BroadcastProxyConfig

type BroadcastProxyConfig struct {
	Perf      string `toml:"perf"`
	Log       *log.Config
	Http      *HttpConfig
	Backend   *BackendConfig
	ZooKeeper *ZooKeeperConfig
	Ipip      *IpipConfig
	Dispatch  *DispatchConfig
	Sven      *SvenConfig
}

func NewBroadcastProxyConfig

func NewBroadcastProxyConfig(file string) (*BroadcastProxyConfig, error)

type DispatchConfig

type DispatchConfig struct {
	MaxLimit             int
	DefaultDomain        string
	WildcardDomainSuffix string
	FileName             string
}

type HttpConfig

type HttpConfig struct {
	Address string
}

type IpipConfig

type IpipConfig struct {
	V4 string
	V6 string
}

type SinaIPConfig

type SinaIPConfig struct {
	Data string
}

type SvenConfig

type SvenConfig struct {
	TreeID string
	Zone   string
	Env    string
	Build  string
	Token  string
}

type ZooKeeperConfig

type ZooKeeperConfig struct {
	Address    []string
	Timeout    xtime.Duration
	ConfigPath string
}

Jump to

Keyboard shortcuts

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