Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Conn ¶
type Conn interface {
Write([]byte) (int, error)
WriteLease(WriteLease) (int, error)
WriteHeaderAndLease([]byte, WriteLease) (int, error)
Writev(...[]byte) (int, error)
Peek([]byte) []byte
AcquireRead() ReadLease
Discard(int) (int, error)
PauseRead()
ResumeRead()
ResumeOnNextRead()
CompleteRequest()
Close() error
Context() any
SetContext(any)
LocalAddr() net.Addr
RemoteAddr() net.Addr
}
type Option ¶
type Option func(*options)
func WithIdleTimeout ¶
func WithReadTimeout ¶
func WithWriteTimeout ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) ListenAndServe ¶
type WriteLease ¶
type WriteLease interface {
Bytes() []byte
Retain() WriteLease
Release()
}
Click to show internal directories.
Click to hide internal directories.