master

package
v0.0.0-...-927e444 Latest Latest
Warning

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

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

README

JimDB Master

catalog management and cluster coordination

Documentation

Index

Constants

View Source
const (
	Timeout          = "timeout"
	CancelFunc       = "__cancelFunc"
	Ctx              = "__ctx"
	Start            = "__start_time"
	ProtoContentType = "application/proto"
)

Variables

This section is empty.

Functions

func ExportToClusterHandler

func ExportToClusterHandler(router *gin.Engine, service *service.BaseService)

func ExportToHealthHandler

func ExportToHealthHandler(router *gin.Engine, service *service.BaseService)

func ExportToNodeHandler

func ExportToNodeHandler(router *gin.Engine, nodeService *service.BaseService)

func ExportToRangeHandler

func ExportToRangeHandler(router *gin.Engine, rangeService *service.BaseService, watcherService *service.WatcherService)

func ExportToWatcherHandler

func ExportToWatcherHandler(router *gin.Engine, bs *service.BaseService) *service.WatcherService

Types

type ConfigResult

type ConfigResult struct {
	Error     string `json:"error,omitempty"`
	AutoSplit bool   `json:"auto_split"`
	FailOver  bool   `json:"fail_over"`
	Balanced  bool   `json:"balanced"`
}

type RangeChange

type RangeChange int
const (
	LeaderChange RangeChange = 1 << iota
	PeerChange
)

func (RangeChange) IsChanged

func (r RangeChange) IsChanged() bool

func (RangeChange) IsLeaderChange

func (r RangeChange) IsLeaderChange() bool

func (RangeChange) IsPeerChange

func (r RangeChange) IsPeerChange() bool

type Server

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

func NewServer

func NewServer(ctx context.Context, cancel context.CancelFunc) (*Server, error)

func (*Server) Start

func (s *Server) Start() (err error)

func (*Server) Stop

func (s *Server) Stop()

Directories

Path Synopsis
client
apd
Package apd implements arbitrary-precision decimals.
Package apd implements arbitrary-precision decimals.
cblog
Package glog implements logging analogous to the Google-internal C++ INFO/ERROR/V setup.
Package glog implements logging analogous to the Google-internal C++ INFO/ERROR/V setup.
log

Jump to

Keyboard shortcuts

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