api

package
v0.6.9 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

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 registration of handlers for API routes

func New

func New(l log.Logger, e *common.Etcd) (*API, error)

New returns a new API.

func (*API) Register

func (a *API) Register(r *mux.Router)

Register registers the API handlers under their correct routes in the given router.

type Worker

type Worker struct {
	Type     string          `json:"type"`
	Worker   json.RawMessage `json:"worker,omitempty"`
	WorkerID string          `json:"id,omitempty"`
}

type Workers

type Workers []Worker

Jump to

Keyboard shortcuts

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