Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Servers []ServerConfig `yaml:"servers" json:"servers"`
}
func DecodeConfig ¶
type MonitorConfig ¶
type MonitorConfig struct {
Threshold float64 `yaml:"threshold" json:"threshold"`
MaxSampleSize int `yaml:"maxSampleSize" json:"maxSampleSize"`
MinStdDeviationMillis float64 `yaml:"minStdDeviationMillis" json:"minStdDeviationMillis"`
AcceptableHeartbeatPauseMillis int64 `yaml:"acceptableHeartbeatPauseMillis" json:"acceptableHeartbeatPauseMillis"`
FirstHeartbeatEstimateMillis int64 `yaml:"firstHeartbeatEstimateMillis" json:"firstHeartbeatEstimateMillis"`
}
type ServerConfig ¶
type ServerConfig struct {
Name string `yaml:"name" json:"name"`
URL string `yaml:"url" json:"url"`
Monitor MonitorConfig `yaml:"monitor" json:"monitor"`
}
func DecodeServerConfig ¶
func DecodeServerConfig(data []byte) (*ServerConfig, error)
func (*ServerConfig) Encode ¶
func (s *ServerConfig) Encode() ([]byte, error)
func (*ServerConfig) UnmarshalYAML ¶
func (s *ServerConfig) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML implements the yaml.Unmarshaler interface for ServerConfig
Click to show internal directories.
Click to hide internal directories.