Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
GCWorkerVersion = "None"
)
The version info is set in Makefile
Functions ¶
func LogGCWorkerInfo ¶
func LogGCWorkerInfo()
LogGCWorkerInfo prints the GC-Worker version information.
func PrintGCWorkerInfo ¶
func PrintGCWorkerInfo()
PrintGCWorkerInfo prints the GC-Worker version information without log info.
Types ¶
type Config ¶
type Config struct {
Name string `toml:"name" json:"name"`
Version bool `json:"-"`
PdAddrs string `toml:"pd" json:"pd"`
EtcdEndpoint string `toml:"etcd" json:"etcd"`
SafePointUpdateInterval typeutil.Duration `toml:"safepoint-update-interval" json:"safepoint-update-interval"`
EtcdElectionInterval typeutil.Duration `toml:"etcd-election-interval" json:"etcd-election-interval"`
GCLifeTime typeutil.Duration `toml:"gc-life-time" json:"gc-life-time"`
TLSConfig TLSConfig `toml:"security" json:"security"`
// Log related config.
Log log.Config `toml:"log" json:"log"`
// contains filtered or unexported fields
}
func (*Config) GetConfigFile ¶
GetConfigFile gets the config file.
func (*Config) GetZapLogProperties ¶
func (c *Config) GetZapLogProperties() *log.ZapProperties
GetZapLogProperties gets properties of the zap logger.
func (*Config) GetZapLogger ¶
GetZapLogger gets the created zap logger.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func CreateServer ¶
CreateServer creates the UNINITIALIZED pd server with given configuration.
func (*Server) GetServerName ¶
func (*Server) StartServer ¶
func (s *Server) StartServer()
Click to show internal directories.
Click to hide internal directories.