Documentation
¶
Index ¶
- Constants
- func SetKeepAlive(fd, secs int) error
- func SockaddrToAddr(sa syscall.Sockaddr) net.Addr
- type EventFd
- type EventHandler
- type Poll
- func (p *Poll) AddRead(fd int)
- func (p *Poll) AddReadWrite(fd int)
- func (p *Poll) Close() error
- func (p *Poll) FireEvent(event uint64) error
- func (p *Poll) ModDetach(fd int)
- func (p *Poll) ModRead(fd int)
- func (p *Poll) ModReadWrite(fd int)
- func (p *Poll) Trigger(note interface{}) error
- func (p *Poll) Wait(handler EventHandler) error
Constants ¶
View Source
const ( EventClose uint64 = 1 EventTick uint64 = 2 EventWrite uint64 = 3 )
Variables ¶
This section is empty.
Functions ¶
func SetKeepAlive ¶
Types ¶
type EventFd ¶
type EventFd struct {
// contains filtered or unexported fields
}
func (*EventFd) WriteEvent ¶
type EventHandler ¶
Click to show internal directories.
Click to hide internal directories.