api

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNamespace

func GetNamespace(req *rest.Request) string

GetNamespace from a request

Types

type Health

type Health struct {
	// contains filtered or unexported fields
}

Health handles health API calls

func NewHealth

func NewHealth(reporter metrics.Reporter) *Health

NewHealth creates struct

func (*Health) GetHealth

func (h *Health) GetHealth(w rest.ResponseWriter, req *rest.Request) error

GetHealth performs health check on controller and dependencies

func (*Health) Routes

func (h *Health) Routes(middlewares ...rest.Middleware) []*rest.Route

Routes for health check API

type Rule

type Rule struct {
	// contains filtered or unexported fields
}

Rule API.

func NewRule

func NewRule(m rules.Manager, r metrics.Reporter) *Rule

NewRule constructs a new Rule API.

func (*Rule) Routes

func (r *Rule) Routes(middlewares ...rest.Middleware) []*rest.Route

Routes returns this API's routes wrapped by the middlewares.

type RuleList

type RuleList struct {
	Rules    []rules.Rule `json:"rules"`
	Revision int64        `json:"revision"`
}

RuleList is used to output the results of rule queries.

Jump to

Keyboard shortcuts

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