Discover Packages
github.com/ovh/utask
api
package
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: Nov 25, 2019
License: BSD-3-Clause
Opens a new window with license information.
Imports: 27
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Server wraps the http handler that exposes a REST API to control
the task orchestration engine
NewServer returns a new Server
Handler returns the underlying http.Handler of a Server
ListenAndServe launches an http server and stays blocked until
the server is shut down by a system signal
WithAuth configures the Server's auth middleware
it receives an authProvider function capable of extracting a caller's identity from an *http.Request
the authProvider function also has discretion to deny authorization for a request by returning an error
type StatsOut struct {
TaskStates map[string ]float64 `json:"task_states"`
}
StatsOut aggregates different business stats:
- a map of task states and their count
Stats handles the http request to fetch µtask statistics
common to all instances
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.