Documentation
¶
Index ¶
Constants ¶
View Source
const ( StatusOn = 1 StatusOff = 0 )
Variables ¶
View Source
var ( //ErrServAlreadyRunning error than run method UP if server already started ErrServAlreadyRunning = errors.New("server already running") //ErrServAlreadyStopped error than run method Down if server already stopped ErrServAlreadyStopped = errors.New("server already stopped") )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
HTTP ConfigItem `yaml:"http" json:"http"`
}
Config model
func (Config) MarshalEasyJSON ¶
func (Config) MarshalJSON ¶
func (*Config) UnmarshalEasyJSON ¶
func (*Config) UnmarshalJSON ¶
type ConfigItem ¶
type ConfigItem struct {
Addr string `yaml:"addr" json:"addr"`
ReadTimeout time.Duration `yaml:"read_timeout" json:"read_timeout"`
WriteTimeout time.Duration `yaml:"write_timeout" json:"write_timeout"`
IdleTimeout time.Duration `yaml:"idle_timeout" json:"idle_timeout"`
}
ConfigItem model
func (ConfigItem) MarshalEasyJSON ¶
func (ConfigItem) MarshalEasyJSON(w *jwriter.Writer)
func (ConfigItem) MarshalJSON ¶
func (ConfigItem) MarshalJSON() ([]byte, error)
func (*ConfigItem) UnmarshalEasyJSON ¶
func (*ConfigItem) UnmarshalEasyJSON(l *jlexer.Lexer)
func (*ConfigItem) UnmarshalJSON ¶
func (*ConfigItem) UnmarshalJSON([]byte) error
type EasyJSON_exporter_Config ¶
type EasyJSON_exporter_Config *Config
type EasyJSON_exporter_ConfigItem ¶
type EasyJSON_exporter_ConfigItem *ConfigItem
Click to show internal directories.
Click to hide internal directories.