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 {
NodeID string `json:"nodeID"`
LogLevel string `json:"logLevel"`
Mode SwanMode `json:"mode"` // manager, agent, mixed
DataDir string `json:"dataDir"`
NoRecover bool `json:"noRecover"`
Domain string `json:"domain"`
RaftAdvertiseAddr string `json:"raftAdvertiseAddr"`
RaftListenAddr string `json:"raftListenAddr"`
ListenAddr string `json:"listenAddr"`
AdvertiseAddr string `json:"advertiseAddr"`
JoinAddrs []string `json:"joinAddrs"`
Scheduler Scheduler `json:"scheduler"`
DNS DNS `json:"dns"`
Janitor Janitor `json:"janitor"`
}
Click to show internal directories.
Click to hide internal directories.