Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrEpollEmptyEvents = errors.New("epoll empty event")
)
View Source
var (
ErrInvalidEOF = errors.New("invalid eof chars")
)
View Source
var (
ErrInvalidPoolType = errors.New("invalid data type from pool")
)
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v1.3.0
type Config struct {
Epoll ConfigItem `yaml:"epoll" json:"epoll"`
}
Config model
func (Config) MarshalEasyJSON ¶ added in v1.3.0
func (Config) MarshalJSON ¶ added in v1.3.0
func (*Config) UnmarshalEasyJSON ¶ added in v1.3.0
func (*Config) UnmarshalJSON ¶ added in v1.3.0
type ConfigItem ¶
type ConfigItem struct {
Addr string `yaml:"addr" json:"addr"`
}
ConfigItem model
func (ConfigItem) MarshalEasyJSON ¶ added in v1.3.0
func (ConfigItem) MarshalEasyJSON(w *jwriter.Writer)
func (ConfigItem) MarshalJSON ¶ added in v1.3.0
func (ConfigItem) MarshalJSON() ([]byte, error)
func (*ConfigItem) UnmarshalEasyJSON ¶ added in v1.3.0
func (*ConfigItem) UnmarshalEasyJSON(l *jlexer.Lexer)
func (*ConfigItem) UnmarshalJSON ¶ added in v1.3.0
func (*ConfigItem) UnmarshalJSON([]byte) error
type EasyJSON_exporter_Config ¶ added in v1.3.0
type EasyJSON_exporter_Config *Config
type EasyJSON_exporter_ConfigItem ¶ added in v1.3.0
type EasyJSON_exporter_ConfigItem *ConfigItem
type Events ¶ added in v1.3.0
type Events []unix.EpollEvent
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server ...
func New ¶ added in v1.3.0
func New(conf *Config, handler ConnectionHandler, log logger.Logger) *Server
NewServer ...
func NewCustomServer ¶
func NewCustomServer(conf ConfigItem, handler ConnectionHandler, eof []byte, log logger.Logger) *Server
NewCustomServer ...
Click to show internal directories.
Click to hide internal directories.