Documentation ¶
Index ¶
- Constants
- type DeadlineTimer
- type GoroutineReactor
- type IoContext
- type Path
- type ReactiveSocket
- func (r *ReactiveSocket) AsyncAccept(listen net.Listener, op func(conn net.Conn, err error))
- func (r *ReactiveSocket) AsyncConnect(network, address string, op func(conn net.Conn, err error))
- func (r *ReactiveSocket) AsyncRead(reader io.Reader, b []byte, op func(n int, err error))
- func (r *ReactiveSocket) AsyncReadFull(reader io.Reader, b []byte, op func(n int, err error))
- func (r *ReactiveSocket) AsyncResolve(ctx context.Context, host string, port string, ...)
- func (r *ReactiveSocket) AsyncWrite(writer io.Writer, b []byte, op func(n int, ec error))
- type ReactorService
- type SignalSet
Constants ¶
View Source
const Infinity = false
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeadlineTimer ¶
type DeadlineTimer struct {
// contains filtered or unexported fields
}
func NewDeadlineTimer ¶
func NewDeadlineTimer(ctx *IoContext) *DeadlineTimer
func (*DeadlineTimer) AsyncWait ¶
func (d *DeadlineTimer) AsyncWait(op func(err error))
func (*DeadlineTimer) Cancel ¶
func (d *DeadlineTimer) Cancel()
func (*DeadlineTimer) ExpiresAt ¶
func (d *DeadlineTimer) ExpiresAt(t time.Time)
func (*DeadlineTimer) ExpiresFromNow ¶
func (d *DeadlineTimer) ExpiresFromNow(duration time.Duration)
type GoroutineReactor ¶
type GoroutineReactor struct {
// contains filtered or unexported fields
}
func NewGoroutineReactor ¶
func NewGoroutineReactor() *GoroutineReactor
type IoContext ¶
type IoContext struct {
// contains filtered or unexported fields
}
func NewIoContext ¶
func NewIoContext() *IoContext
func (*IoContext) GetService ¶
func (i *IoContext) GetService() ReactorService
type ReactiveSocket ¶
type ReactiveSocket struct {
// contains filtered or unexported fields
}
func NewReactiveSocket ¶
func NewReactiveSocket(ctx *IoContext) *ReactiveSocket
func (*ReactiveSocket) AsyncAccept ¶
func (*ReactiveSocket) AsyncConnect ¶
func (r *ReactiveSocket) AsyncConnect(network, address string, op func(conn net.Conn, err error))
func (*ReactiveSocket) AsyncReadFull ¶
func (*ReactiveSocket) AsyncResolve ¶
func (*ReactiveSocket) AsyncWrite ¶
type ReactorService ¶
type ReactorService interface {
// contains filtered or unexported methods
}
Click to show internal directories.
Click to hide internal directories.