Documentation ¶
Index ¶
Constants ¶
View Source
const ( DEF_WG_IFACE string = "wg0" DEF_WG_ETH string = "eth" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentConfig ¶
type AgentConfig struct { AgentType uint8 `yaml:"agent_type"` // pop or connector, WG_AGENT_TYPE_POP = 1; WG_AGENT_TYPE_CONNECTOR = 2; WG_AGENT_TYPE_CLIENT = 3 AgentId string `yaml:"agent_id"` // pop id or connector Api ApiConfig `yaml:"api"` // server api Log *logger.LogModule `yaml:"log"` // Version string `yaml:"version"` Env string `yaml:"env"` HostName string `yaml:"host_name"` }
config can be downloaded from web ui
func (*AgentConfig) GetWgAgentLogCfg ¶
func (c *AgentConfig) GetWgAgentLogCfg() *logger.LogModule
type AgentMqConfig ¶
type AgentWgConfig ¶
type AgentWgConfig struct { WgInterfaces []string `yaml:"interfaces"` // EthName string `yaml:"eth"` // Forward bool `yaml:"forward"` // Iptables bool `yaml:"iptables"` // }
func (*AgentWgConfig) GetEth ¶
func (c *AgentWgConfig) GetEth() string
func (*AgentWgConfig) GetWgInterface ¶
func (c *AgentWgConfig) GetWgInterface() string
func (*AgentWgConfig) GetWgInterfaces ¶
func (c *AgentWgConfig) GetWgInterfaces() []string
type ApiConfig ¶
type ApiConfig struct { ApiHost string `yaml:"host"` // API host, controller(hostname), maybe use websocket ApiPort int `yaml:"port"` // Register port on API host, 8081 ApiSsl SSLCfg `yaml:"ssl"` // ssl config of api/mtls ApiRegEndpoint string `yaml:"reg_endpoint"` // =/ws/agent ApiDataEndpoint string `yaml:"data_endpoint"` // =/data, or other api }
Click to show internal directories.
Click to hide internal directories.