Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TcpQotdServer ¶
type TcpQotdServer interface { // To start the server, provide a port on which to listen and a channel // "quotes" from which to obtain new quotes Start(port int, quotes chan string) error // Close the server Close() // Turn on debugging SetDebug(debug bool) }
External interface to the UdpQotdServer
func NewTCP ¶
func NewTCP() TcpQotdServer
type UdpQotdServer ¶
type UdpQotdServer interface { // To start the server, provide a port on which to listen and a channel // "quotes" from which to obtain new quotes Start(port int, quotes chan string) error // Close the server Close() // Turn on debugging SetDebug(debug bool) }
External interface to the UdpQotdServer
func NewUDP ¶
func NewUDP() UdpQotdServer
Click to show internal directories.
Click to hide internal directories.