Documentation ¶
Index ¶
Constants ¶
View Source
const ( NetworkTCP = "tcp" NetworkUnix = "unix" )
Variables ¶
View Source
var (
EmptyResponse = map[string]interface{}{}
)
Functions ¶
This section is empty.
Types ¶
type T ¶
type T struct {
// contains filtered or unexported fields
}
func New ¶
New creates an HTTP server instance that will accept API requests at the specified `network`/`address` and execute them with the specified `producer`, `consumer`, or `admin`, depending on the request type.
func (*T) AsyncStop ¶
func (as *T) AsyncStop()
AsyncStop triggers HTTP API listener stop. If a caller wants to know when the server terminates it should read from the `Error()` channel that will be closed upon server termination.
Click to show internal directories.
Click to hide internal directories.