api

package
v0.0.0-...-6fc17c5 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2017 License: BSD-3-Clause Imports: 9 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 {
	Serer *server.LbServer
	// contains filtered or unexported fields
}

func NewAPI

func NewAPI(s *server.LbServer, msg chan int) *API

func (*API) Listen

func (api *API) Listen(address string)

type BackendStat

type BackendStat struct {
	Name           string                 `json:"name"`
	BackendControl modules.BackendControl `json:"backend"`
}

type FrontendStat

type FrontendStat struct {
	Name        string        `json:"name"`
	BackendList []BackendStat `json:"backends"`
}

type Statistic

type Statistic struct {
	FrontendList []FrontendStat `json:"frontends"`
}

func NewStat

func NewStat(s *server.LbServer) Statistic

Jump to

Keyboard shortcuts

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