Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler handles the API HTTP server
func NewHandler ¶
NewHandler creates a new API handler
type SingleConnListener ¶
type SingleConnListener struct {
// contains filtered or unexported fields
}
SingleConnListener is a listener that accepts a single, stored, conn
func NewSingleConnListener ¶
func NewSingleConnListener(l net.Listener, c net.Conn) *SingleConnListener
NewSingleConnListener creates a new single connection listener
func (*SingleConnListener) Accept ¶
func (l *SingleConnListener) Accept() (net.Conn, error)
Accept accepts a connection once and then EOFs
func (*SingleConnListener) Addr ¶
func (l *SingleConnListener) Addr() net.Addr
Addr defers to the stored original listener
Click to show internal directories.
Click to hide internal directories.