config

package
v0.1.28 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

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 GRPC

type GRPC struct {
	ListenerAddr string `mapstructure:"listener_addr"`
}

type HTTP

type HTTP struct {
	ListenerAddr string `mapstructure:"listener_addr"`
}

type MessagesFSMConfig

type MessagesFSMConfig struct {
	SnapshotsEntries   uint64 `mapstructure:"snapshot_entries"`
	CompactionOverhead uint64 `mapstructure:"compaction_overhead"`
}

type MetadataFSMConfig

type MetadataFSMConfig struct {
	SnapshotEntries    uint64 `mapstructure:"snapshot_entries"`
	CompactionOverhead uint64 `mapstructure:"compaction_overhead"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL