Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetValidPartitionID ¶
func GetValidPartitionNum ¶
func GetValidReplicator ¶
func SLogger ¶
func SLogger() *common.LevelLogger
Types ¶
type PartitionNodeInfo ¶
type PartitionNodeInfo struct { Leader nodeInfo `json:"leader"` Replicas []nodeInfo `json:"replicas"` }
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(conf *ServerConfig) *Server
func (*Server) DelTombstonePDNode ¶
func (*Server) IsTombstonePDNode ¶
type ServerConfig ¶
type ServerConfig struct { HTTPAddress string `flag:"http-address"` BroadcastAddr string `flag:"broadcast-address"` BroadcastInterface string `flag:"broadcast-interface"` ReverseProxyPort string `flag:"reverse-proxy-port"` ProfilePort string `flag:"profile-port"` ClusterID string `flag:"cluster-id"` ClusterLeadershipAddresses string `flag:"cluster-leadership-addresses" cfg:"cluster_leadership_addresses"` AutoBalanceAndMigrate bool `flag:"auto-balance-and-migrate"` BalanceInterval []string `flag:"balance-interval"` LogLevel int32 `flag:"log-level" cfg:"log_level"` LogDir string `flag:"log-dir" cfg:"log_dir"` DataDir string `flag:"data-dir" cfg:"data_dir"` LearnerRole string `flag:"learner-role" cfg:"learner_role"` FilterNamespaces string `flag:"filter-namespaces" cfg:"filter_namespaces"` }
func NewServerConfig ¶
func NewServerConfig() *ServerConfig
Click to show internal directories.
Click to hide internal directories.