Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
HTTP ConfigItem `yaml:"http" json:"http"`
}
func (Config) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Config) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Config) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Config) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
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"`
}
func (ConfigItem) MarshalEasyJSON ¶
func (v ConfigItem) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ConfigItem) MarshalJSON ¶
func (v ConfigItem) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ConfigItem) UnmarshalEasyJSON ¶
func (v *ConfigItem) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ConfigItem) UnmarshalJSON ¶
func (v *ConfigItem) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server ...
func NewCustomServer ¶
Click to show internal directories.
Click to hide internal directories.