clusterinfo

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterInfo

type ClusterInfo struct {
	TiDB struct {
		Nodes []clusterinfo.TiDBInfo `json:"nodes"`
		Err   *string                `json:"err"`
	} `json:"tidb"`

	TiKV struct {
		Nodes []clusterinfo.TiKVInfo `json:"nodes"`
		Err   *string                `json:"err"`
	} `json:"tikv"`
	PD struct {
		Nodes []clusterinfo.PDInfo `json:"nodes"`
		Err   *string              `json:"err"`
	} `json:"pd"`
	Grafana      *clusterinfo.GrafanaInfo      `json:"grafana"`
	AlertManager *clusterinfo.AlertManagerInfo `json:"alert_manager"`
}

type Service

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

func NewService

func NewService(config *config.Config, etcdProvider pd.EtcdProvider, httpClient *http.Client) *Service

func (*Service) Register

func (s *Service) Register(r *gin.RouterGroup, auth *user.AuthService)

Jump to

Keyboard shortcuts

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