Documentation ¶
Index ¶
Constants ¶
This section is empty.
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.
It also passes in the provided certificate and key paths for TLS. If empty strings, it is run in non-TLS mode.
func (*T) ErrorCh ¶
ErrorCh returns an output channel that HTTP server running in another goroutine will use if it stops with error if one occurs. The channel will be closed when the server is fully stopped due to an error or otherwise..
Click to show internal directories.
Click to hide internal directories.