Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
MetadataPath string `mapstructure:"metadata_path"`
PartitionsPath string `mapstructure:"partitions_path"`
RaftConfig *RaftConfig `mapstructure:"raft"`
ShardLeaderWaitTime time.Duration `mapstructure:"shard_leader_wait_time"`
ShardLeaderSetReCheckInterval time.Duration `mapstructure:"shard_leader_set_recheck_interval"`
ConsumerLostTime time.Duration `mapstructure:"consumer_lost_time"`
ConsumerHealthCheckInterval time.Duration `mapstructure:"consumer_health_check_interval"`
ShutdownTimeout time.Duration `mapstructure:"shutdown_timeout"`
Level logger.Level `mapstructure:"level"`
GRPC GRPC `mapstructure:"grpc"`
HTTP HTTP `mapstructure:"http"`
Version bool `mapstructure:"version"`
Help bool `mapstructure:"help"`
}
var (
Conf *Config
)
func (*Config) PrintUsage ¶ added in v0.1.25
func (c *Config) PrintUsage()
func (*Config) PrintVersion ¶ added in v0.1.25
func (c *Config) PrintVersion()
type MessagesFSMConfig ¶
type MetadataFSMConfig ¶
type RaftConfig ¶
type RaftConfig struct {
ReplicaID uint64 `mapstructure:"replica_id"`
Addr string `mapstructure:"addr"`
Join bool `mapstructure:"join"`
InviteMembers map[uint64]string `mapstructure:"invite_members"`
LogsDataDir string `mapstructure:"logs_data_dir"`
Metadata MetadataFSMConfig `mapstructure:"metadata_fsm"`
Messages MessagesFSMConfig `mapstructure:"messages_fsm"`
}
Click to show internal directories.
Click to hide internal directories.