service

package
v0.0.0-...-334364b Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2016 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const PD_SERVICE = "PD"
View Source
const TiDB_SERVICE = "TiDB"
View Source
const TiKV_SERVICE = "TiKV"

Variables

View Source
var Registered map[string]Service

Functions

func RegisterServciesFromEtcd

func RegisterServciesFromEtcd(reg registry.Registry)

func RegisterServices

func RegisterServices()

Types

type PDService

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

func (*PDService) ParseEndpointFromArgs

func (s *PDService) ParseEndpointFromArgs(args []string) map[string]pkg.Endpoint

func (*PDService) Status

func (s *PDService) Status() *ServiceStatus

type Service

type Service interface {
	Status() *ServiceStatus
	ParseEndpointFromArgs([]string) map[string]pkg.Endpoint
}

func NewPDService

func NewPDService() Service

func NewTiDBService

func NewTiDBService() Service

func NewTiKVService

func NewTiKVService() Service

type ServiceStatus

type ServiceStatus struct {
	SvcName      string
	Version      string
	Executor     []string
	Command      string
	Args         []string
	Environments map[string]string
	Endpoints    map[string]pkg.Endpoint
}

type TiDBPerfMetrics

type TiDBPerfMetrics struct {
	TPS         int64  `json:"tps"`
	Connections int    `json:"connections"`
	Version     string `json:"version"`
}

type TiDBService

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

func (*TiDBService) ParseEndpointFromArgs

func (s *TiDBService) ParseEndpointFromArgs(args []string) map[string]pkg.Endpoint

func (*TiDBService) RetrieveRealPerformance

func (s *TiDBService) RetrieveRealPerformance(allProcesses map[string]*proc.ProcessStatus) *TiDBPerfMetrics

func (*TiDBService) Status

func (s *TiDBService) Status() *ServiceStatus

type TiKVService

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

func (*TiKVService) ParseEndpointFromArgs

func (s *TiKVService) ParseEndpointFromArgs(args []string) map[string]pkg.Endpoint

func (*TiKVService) Status

func (s *TiKVService) Status() *ServiceStatus

Jump to

Keyboard shortcuts

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