Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UID = uuid.Must(uuid.FromString("1751b2a1-0ffd-44fe-8a2e-d3f153125c43")).Bytes()
Functions ¶
Types ¶
type Config ¶
type Config struct {
Peer struct {
ID string
Mode string
PortCaller uint16
PortListener uint16
}
Server struct {
Port uint16
Addr string
}
Fec struct {
DataParts uint64
TotalParts uint64
}
Encoder struct {
DispatcherTimeout uint64
DispatcherSize uint64
}
Decoder struct {
AssemblerSize uint64
DispatcherSize uint64
}
}
type Handler ¶
type Handler interface {
Reader(server *net.UDPConn) (io.ReadCloser, error)
Writer(server *net.UDPConn) (io.WriteCloser, error)
}
Click to show internal directories.
Click to hide internal directories.