Documentation ¶
Index ¶
- Constants
- Variables
- func GetConfigContents(key string) (string, error)
- func GetConfigFilePath() (string, error)
- func Init() error
- func InitProtocols() error
- func SetConfig(nc *MesherConfig)
- func SetKeyValueByFile(key, f string) string
- type Admin
- type HealthCheck
- type Match
- type MesherConfig
- type PProf
- type Plugin
- type Policy
Constants ¶
View Source
const (
ConfFile = "mesher.yaml"
)
Constant for mesher conf file
Variables ¶
View Source
var Mode string
Mode is of type string which gives mode of mesher deployment
Functions ¶
func GetConfigContents ¶
GetConfigContents returns config contents
func GetConfigFilePath ¶
GetConfigFilePath returns config file path
func SetConfig ¶
func SetConfig(nc *MesherConfig)
SetConfig sets new mesher config from input config
func SetKeyValueByFile ¶
SetKeyValueByFile reads mesher.yaml and gets key and value
Types ¶
type Admin ¶
type Admin struct { Enable *bool `yaml:"enable"` ServerURI string `yaml:"serverUri"` GoRuntimeMetrics bool `yaml:"goRuntimeMetrics"` }
Admin has attributes for enabling, serverURI and metrics for admin data
type HealthCheck ¶
type HealthCheck struct { PortName string `yaml:"portName"` URI string `yaml:"uri"` Interval string `yaml:"interval"` Match *Match `yaml:"match"` }
HealthCheck define how to check local ports
type MesherConfig ¶
type MesherConfig struct { PProf *PProf `yaml:"pprof"` Plugin *Plugin `yaml:"plugin"` Admin Admin `yaml:"admin"` HealthCheck []*HealthCheck `yaml:"localHealthCheck"` ProxyedPro string `yaml:"proxyedProtocol"` }
MesherConfig has all mesher config
Click to show internal directories.
Click to hide internal directories.