api

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2018 License: Apache-2.0 Imports: 7 Imported by: 1

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.

Directories

Path Synopsis
Package v1 provides HTTP API version 1 of Boruta.
Package v1 provides HTTP API version 1 of Boruta.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL