Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpQotdServer ¶
type HttpQotdServer interface { Start(port int, quotes chan string) error Close() SetMaxLength(ml int) SetDebug(debug bool) }
External interface to the HttpQotdServer
func NewHTTP ¶
func NewHTTP() HttpQotdServer
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() // Set max quote length SetMaxLength(ml int) // Turn on debugging SetDebug(debug bool) }
External interface to the TcpQotdServer
func NewTCP ¶
func NewTCP() TcpQotdServer
Maximum allowed length for QOTD server is 512 as defined in RFC 865: http://tools.ietf.org/html/rfc865 Use this as default max length
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() // Set max quote length SetMaxLength(ml int) // Turn on debugging SetDebug(debug bool) }
External interface to the UdpQotdServer
func NewUDP ¶
func NewUDP() UdpQotdServer
Maximum allowed length for QOTD server is 512 as defined in RFC 865: http://tools.ietf.org/html/rfc865 Use this as default max length
Click to show internal directories.
Click to hide internal directories.