Documentation
¶
Overview ¶
Package api aggregates all availabe Boruta HTTP API versions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API provides HTTP API handlers.
func NewAPI ¶
func NewAPI(router *httptreemux.TreeMux, requestsAPI boruta.Requests, workersAPI boruta.Workers) (api *API)
NewAPI registers all available Boruta HTTP APIs on provided router. It also sets panicHandler for all panics that may occur in any API. Finally it sets default API version to which requests that miss API version are redirected.
Click to show internal directories.
Click to hide internal directories.