v1

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Overview

Package v1 provides HTTP API version 1 of Boruta. Through this API clients may: * list, create, manage and get details of requests; * list, acquire, prolong access to and get details of workers.

Index

Constants

View Source
const State = util.Devel

State contains information about state of the API (devel, stable or obsolete).

View Source
const Version = "v1"

Version contains version string of the API.

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.Group, requestsAPI boruta.Requests,
	workersAPI boruta.Workers) (api *API)

NewAPI takes router and registers HTTP API in it. htttreemux.PanicHandler function is set. Also other setting of the router may be modified.

Jump to

Keyboard shortcuts

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