Documentation ¶
Overview ¶
Package server implements the private API to implement a TURN server
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NonceHash ¶
type NonceHash struct {
// contains filtered or unexported fields
}
NonceHash is used to create and verify nonces
type Request ¶
type Request struct { // Current Request State Conn net.PacketConn SrcAddr net.Addr Buff []byte // Server State AllocationManager *allocation.Manager NonceHash *NonceHash // User Configuration AuthHandler func(username string, realm string, srcAddr net.Addr) (key []byte, ok bool) Log logging.LeveledLogger Realm string ChannelBindTimeout time.Duration }
Request contains all the state needed to process a single incoming datagram
Click to show internal directories.
Click to hide internal directories.