api

package
v0.0.0-...-12494cd Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	Config *config.Config
	Server *http.Server
	// contains filtered or unexported fields
}

A Manager represents the management server object

func NewManager

func NewManager(c *config.Config) (m *Manager)

NewManager creates a management server from a configuration object

func (*Manager) GetCluster

func (m *Manager) GetCluster(w http.ResponseWriter, r *http.Request)

GetCluster returns specific clusters

func (*Manager) GetClusters

func (m *Manager) GetClusters(w http.ResponseWriter, r *http.Request)

GetClusters returns a list of currently available clusters

func (*Manager) GetFrontend

func (m *Manager) GetFrontend(w http.ResponseWriter, r *http.Request)

GetFrontend returns a specific frontend

func (*Manager) GetFrontends

func (m *Manager) GetFrontends(w http.ResponseWriter, r *http.Request)

GetFrontends returns a list of currently enabled frontends

func (*Manager) LogLevel

func (m *Manager) LogLevel(w http.ResponseWriter, r *http.Request)

LogLevel handles GET and POST request to hot modify log config

func (*Manager) PatchFrontend

func (m *Manager) PatchFrontend(w http.ResponseWriter, r *http.Request)

PatchFrontend updates a specific frontend's properties

func (*Manager) ReloadConfig

func (m *Manager) ReloadConfig(w http.ResponseWriter, r *http.Request)

ReloadConfig wraps config.reload

func (*Manager) Start

func (m *Manager) Start()

Start powers on the management api server

Jump to

Keyboard shortcuts

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