collectors

package
v0.0.0-...-e6c3f7b Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectData

type CollectData struct {
	Name string
	Type string
	Data map[string]interface{}
	Fail bool
}

CollectData is all the Metric data

type Collectd

type Collectd interface {
	Start() (CollectData, error)
}

Collectd is the interface of all the collector

type PdConnection

type PdConnection struct {
	Name string
	// contains filtered or unexported fields
}

func GetPdConn

func GetPdConn(address string, name string) (conn *PdConnection, err error)

func (*PdConnection) Start

func (pc *PdConnection) Start() (data CollectData, err error)

type PdTikvConnection

type PdTikvConnection struct {
	Name string
	// contains filtered or unexported fields
}

func GetPdTikvConn

func GetPdTikvConn(address string, name string) (conn *PdTikvConnection, err error)

func (*PdTikvConnection) Start

func (pc *PdTikvConnection) Start() (data CollectData, err error)

type TidbConnection

type TidbConnection struct {
	Name string
	// contains filtered or unexported fields
}

func GetTidbConn

func GetTidbConn(address string, name string) (conn *TidbConnection, err error)

func (*TidbConnection) Start

func (tc *TidbConnection) Start() (data CollectData, err error)

type TikvStore

type TikvStore struct {
	Address   string `json:"address"`
	Capacity  string `json:"capacity"`
	Available string `json:"available"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳