httpapi

package
v0.0.0-...-5b2b37d Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2015 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateViewHandler

func CreateViewHandler(c http.ResponseWriter, r *http.Request)

func DeleteServiceHandler

func DeleteServiceHandler(c http.ResponseWriter, r *http.Request)

func DeleteViewHandler

func DeleteViewHandler(c http.ResponseWriter, r *http.Request)

func GetServiceHandler

func GetServiceHandler(c http.ResponseWriter, r *http.Request)

func GetServicesHandler

func GetServicesHandler(c http.ResponseWriter, r *http.Request)

func GetViewHandler

func GetViewHandler(c http.ResponseWriter, r *http.Request)

func GetViewsHandler

func GetViewsHandler(c http.ResponseWriter, r *http.Request)

func Register

func Register(rtr *mux.Router, client_ service.ServiceIf)

func ServiceHandler

func ServiceHandler(c http.ResponseWriter, r *http.Request)

Types

type JsonService

type JsonService struct {
	Name           string        `json:"name"`
	LastBeat       int64         `json:"last_beat"`
	LastBeatDelta  int64         `json:"last_beat_delta"`
	WarningTimeout int64         `json:"warning_timeout"`
	ErrorTimeout   int64         `json:"error_timeout"`
	State          string        `json:"state"`
	Views          []JsonViewRef `json:"views,omitempty"`
}

type JsonView

type JsonView struct {
	Name      string `json:"name"`
	State     string `json:"state"`
	Regexp    string `json:"regexp,omitempty"`
	AlertMail string `json:"alert_mail"`
	Webhooks  string `json:"webhooks"`
}

type JsonViewRef

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

Jump to

Keyboard shortcuts

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