api

package
v0.0.0-...-e875318 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DIRECTION_DOWN = false
View Source
const DIRECTION_UP = true

Variables

This section is empty.

Functions

func AutoscalerList

func AutoscalerList(scalers autoscaler.Autoscalers) func(w http.ResponseWriter, r *http.Request)

func Events

func Events(eventChannel chan *logrus.Entry) func(w http.ResponseWriter, r *http.Request)

func GetRouter

func GetRouter(core *core.Core, eventChannel chan *logrus.Entry) *mux.Router

func Handle

func Handle(scalers *autoscaler.Autoscalers) func(w http.ResponseWriter, r *http.Request)

func Health

func Health() func(w http.ResponseWriter, r *http.Request)

Types

type AutoscalerResponse

type AutoscalerResponse struct {
	Name string `json:"name"`
}

type CollectionResponse

type CollectionResponse struct {
	Data interface{} `json:"data"`
}

type HealthResponse

type HealthResponse struct {
	Status bool              `json:"status"`
	Info   map[string]string `json:"info"`
}

type NotFound

type NotFound struct{}

func (NotFound) ServeHTTP

func (n NotFound) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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