Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigGenerator ¶
type ConfigGenerator struct {
*Options
// contains filtered or unexported fields
}
func NewConfigGenerator ¶
func NewConfigGenerator(opts *Options, hostname func() (name string, err error)) *ConfigGenerator
func (*ConfigGenerator) Generate ¶
func (c *ConfigGenerator) Generate() error
Generate generates the final config of datanode.
type Options ¶
type Options struct {
ConfigPath string
InitConfigPath string
Namespace string
RoleKind string
// For generating config of datanode or flownode.
RPCPort int32
// DatanodeGroupID is the id of the datanode group when use `DatanodeGroups` in GreptimeDBCluster.
DatanodeGroupID int32
// StartNodeID is the start node id of the datanode and flownode.
StartNodeID int32
}
Click to show internal directories.
Click to hide internal directories.