dashboard

package
v4.0.0-rc Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetServiceBuilders

func GetServiceBuilders() []server.HandlerBuilder

GetServiceBuilders returns all ServiceBuilders required by Dashboard

Types

type Manager

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

Manager is used to control dashboard.

func NewManager

func NewManager(srv *server.Server, s *apiserver.Service, redirector *Redirector) *Manager

NewManager creates a new Manager.

type Redirector

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

Redirector is used to redirect when the dashboard is started in another PD.

func NewRedirector

func NewRedirector() *Redirector

NewRedirector creates a new Redirector.

func (*Redirector) ServeHTTP

func (h *Redirector) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP implements http.Handler.

func (*Redirector) SetAddress

func (h *Redirector) SetAddress(addr string)

SetAddress is used to set a new address to be redirected.

Directories

Path Synopsis
keyvisual

Jump to

Keyboard shortcuts

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