Documentation
¶
Index ¶
- Constants
- type AsyncCallback
- type AsyncWriteHook
- type AsyncWritevHook
- type Balancer
- type BalancerIterFunc
- type ConnAdapter
- type Context
- type IBalancer
- type IELoop
- type IEngine
- type IEventHandler
- type IFd
- type IListener
- type IPollCallback
- type IPoller
- type Options
- type PollTaskArg
- type PollTaskFunc
- type RawConn
Constants ¶
View Source
const ( MaxStreamBufferCap int = 64 << 10 IovMax int = 1024 MaxTasks int = 256 DefaultWritevChunkSize int = 2048 DefaultGoroutineSize int = 1024 DefaultErrInfoChanSize int = DefaultGoroutineSize )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AsyncCallback ¶
type AsyncWriteHook ¶
type AsyncWriteHook struct { Go AsyncCallback Data []byte }
type AsyncWritevHook ¶
type AsyncWritevHook struct { Go AsyncCallback Data [][]byte }
type BalancerIterFunc ¶
type ConnAdapter ¶
type ConnAdapter int
const ( ConnAsyncWriteAdapter ConnAdapter = 0 ConnNoneAdapter ConnAdapter = 1 ConnWritevAdapter ConnAdapter = 2 ConnAsyncWritevAdapter ConnAdapter = 3 )
type Context ¶
type IEngine ¶
type IEngine interface { GetOptions() *Options GetBalancer() IBalancer GetHandler() IEventHandler }
type IEventHandler ¶
type IPollCallback ¶
type IPoller ¶
type IPoller interface { Close() error AddPriorTask(f PollTaskFunc, arg PollTaskArg) (err error) }
type Options ¶
type Options struct { NumOfLoops int LoadBalancer Balancer ReuseAddr bool ReusePort bool SocketWriteBuffer int SocketReadBuffer int WriteBuffer int ReadBuffer int ConnKeepAlive time.Duration LockOSThread bool TLSConfig *tls.Config ConnAdapter ConnAdapter ConnAsyncCallback AsyncCallback WritevChunkSize int GoroutineSize int }
type PollTaskArg ¶
type PollTaskArg interface{}
type PollTaskFunc ¶
type PollTaskFunc func(arg PollTaskArg) error
type RawConn ¶
type RawConn interface { sys.EventHandler }
Click to show internal directories.
Click to hide internal directories.