Documentation
¶
Index ¶
- type Connection
- type IEventHandler
- type IFrameReadCodec
- type Option
- type Options
- type Poller
- func (ep *Poller) AddRead(fd int) error
- func (ep *Poller) AddWrite(fd int) error
- func (ep *Poller) Delete(fd int) error
- func (ep *Poller) ModRead(fd int) error
- func (ep *Poller) ModReadWrite(fd int) error
- func (ep *Poller) Poll(handler func(fd int, event int32))
- func (ep *Poller) Trigger(job internal.Job) error
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type IEventHandler ¶
type IEventHandler interface { OnInited() OnNewConnect(c Connection) OnNewRead(c Connection, decodeObj interface{}) OnClose(c Connection) }
type IFrameReadCodec ¶
type Option ¶
type Option func(opts *Options)
func WithEventCoroutineNum ¶
func WithFrameReadCodec ¶
func WithFrameReadCodec(codec IFrameReadCodec) Option
type Options ¶
type Options struct { WorkGoroutinesNum int // contains filtered or unexported fields }
type Poller ¶
type Poller struct {
// contains filtered or unexported fields
}
func (*Poller) ModReadWrite ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.