Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AvailableRegion []string
Functions ¶
func ValidateConfigKey ¶
Types ¶
type ClinicConfig ¶
type ClinicServer ¶
type DiagConfig ¶
type DiagConfig struct {
Clinic ClinicConfig `toml:"clinic,omitempty"`
}
user specified diag config
func (*DiagConfig) InteractiveSet ¶
func (c *DiagConfig) InteractiveSet() error
func (*DiagConfig) InteractiveSetRegion ¶
func (c *DiagConfig) InteractiveSetRegion() error
func (*DiagConfig) InteractiveSetToken ¶
func (c *DiagConfig) InteractiveSetToken()
func (*DiagConfig) Load ¶
func (c *DiagConfig) Load() error
func (*DiagConfig) Save ¶
func (c *DiagConfig) Save() error
func (*DiagConfig) Set ¶
func (c *DiagConfig) Set(key, value string) error
only support string value now
func (*DiagConfig) Unset ¶
func (c *DiagConfig) Unset(key string) error
type DiagInfo ¶
type DiagInfo struct {
ClinicServers map[Region]ClinicServer `toml:"clinicservers"`
}
user specified diag config
var Info DiagInfo
Click to show internal directories.
Click to hide internal directories.