Documentation ¶
Overview ¶
config holds configuration for all the jnk application components
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsBridgeEnabled ¶
func IsBridgeEnabled() bool
func IsMenshenEnabled ¶
func IsMenshenEnabled() bool
func IsOpenVPNEnabled ¶
func IsOpenVPNEnabled() bool
Types ¶
type Config ¶
type Config struct { ImageMenshen string ImageOpenVPN string ImageObfsVPN string MenshenAllowGatewayList bool MenshenAllowBridgeList bool MenshenAutoTLS bool MenshenFromEIPURL string MenshenPort int MenshenServerName string // contains filtered or unexported fields }
func NewConfigFromViper ¶
func NewConfigFromViper() *Config
NewConfigFromViper is intended to be used together with viper, which should be handled by the command.
Click to show internal directories.
Click to hide internal directories.