Documentation

Overview

Package agent is a database agent in remote servers.

Index

Constants

const (
	JavaClassPathZookeeperr353beta = "" /* 156 byte string literal not displayed */
)

Java class paths for Zookeeper. '-cp' is for 'class search path of directories and zip/jar files'. See https://zookeeper.apache.org/doc/trunk/zookeeperAdmin.html for more. UPDATE FOR EACH ZOOKEEPER RELEASES! Search correct paths with 'find ./zookeeper/lib | sort'.


Variables

var Command = &cobra.Command{
	Use:   "agent",
	Short: "Database 'agent' in remote servers.",
	RunE:  commandFunc,
}

Command implements 'agent' command.


Functions

func NewServer

func NewServer(lg *zap.Logger) dbtesterpb.TransporterServer

NewServer returns a new server that implements gRPC interface.

Types

type ZookeeperConfig

type ZookeeperConfig struct {
	TickTime             int64
	DataDir              string
	ClientPort           int64
	InitLimit            int64
	SyncLimit            int64
	MaxClientConnections int64
	SnapCount            int64
	Peers                []ZookeeperPeer
}

ZookeeperConfig is zookeeper configuration. http://zookeeper.apache.org/doc/trunk/zookeeperAdmin.html

type ZookeeperPeer

type ZookeeperPeer struct {
	MyID int
	IP   string
}

ZookeeperPeer defines Zookeeper peer configuration.