Documentation
¶
Index ¶
Constants ¶
View Source
const (
API_PREFIX = "/v_beta"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DNS ¶
type DNS struct {
Domain string `json:"domain"`
RecurseOn bool `json:"recurse_on"`
IP string `json:"ip"`
Port int `json:"port"`
SOARname string `json:"soarname"`
SOAMname string `json:"soamname"`
SOASerial uint32 `json:"soaserial"`
SOARefresh uint32 `json:"soarefresh"`
SOARetry uint32 `json:"soaretry"`
SOAExpire uint32 `json:"soaexpire"`
TTL int `json:"ttl"`
Resolvers []string `json:"resolvers"`
ExchangeTimeout time.Duration `json:"exchange_timeout"`
}
type SwanConfig ¶
type SwanConfig struct {
LogLevel string `json:"log-level"`
Mode SwanMode `json:"mode"` // manager, agent, mixed
DataDir string `json:"data-dir"`
NoRecover bool `json:"no-recover"`
Domain string `json:"domain"`
SwanClusterAddrs []string `json:swan-cluster-addrs`
Scheduler Scheduler `json:"scheduler"`
Raft Raft `json:"raft"`
DNS DNS `json:"dns"`
Janitor Janitor `json:"janitor"`
ListenAddr string `json:"listen-addr"`
AdvertiseAddr string `json:"advertise-addr"`
}
Click to show internal directories.
Click to hide internal directories.