Documentation ¶
Index ¶
- Constants
- func CancelTimeout(conn net.Conn)
- func GetRandomTimeoutDuration() time.Duration
- func SetRandomizedTimeout(conn net.Conn)
- type Command
- type ConnSession
- type HasHash
- type NeedAuth
- type NeedConfig
- type NeedRespond
- type PacketReadWriter
- type PacketReader
- type PacketSession
- type PacketWriter
- type Request
Constants ¶
View Source
const ( MaxUDPPacketSize = 1024 * 4 UDPTimeout = time.Second * 5 TCPTimeout = time.Second * 5 )
Variables ¶
This section is empty.
Functions ¶
func CancelTimeout ¶ added in v0.4.2
func GetRandomTimeoutDuration ¶ added in v0.4.3
func SetRandomizedTimeout ¶ added in v0.4.3
Types ¶
type ConnSession ¶
type ConnSession interface { io.ReadWriteCloser }
type NeedAuth ¶ added in v0.0.3
type NeedAuth interface {
SetAuth(auth stat.Authenticator)
}
type NeedConfig ¶
type NeedConfig interface {
SetConfig(config *conf.GlobalConfig)
}
type NeedRespond ¶
type NeedRespond interface {
Respond() error
}
type PacketReadWriter ¶
type PacketReadWriter interface { PacketReader PacketWriter }
type PacketReader ¶
type PacketSession ¶
type PacketSession interface { PacketReadWriter io.Closer }
type PacketWriter ¶
Click to show internal directories.
Click to hide internal directories.