mirror of
https://github.com/hanzozt/zt.git
synced 2026-10-30 15:04:55 +00:00
32 lines
619 B
Go
32 lines
619 B
Go
package config
|
|
|
|
import (
|
|
"github.com/hashicorp/go-hclog"
|
|
"github.com/openziti/transport/v2"
|
|
"time"
|
|
)
|
|
|
|
type RaftConfig struct {
|
|
Recover bool
|
|
DataDir string
|
|
AdvertiseAddress transport.Address
|
|
CommandHandlerOptions struct {
|
|
MaxQueueSize uint16
|
|
}
|
|
|
|
SnapshotInterval time.Duration
|
|
SnapshotThreshold uint32
|
|
TrailingLogs uint32
|
|
MaxAppendEntries *uint32
|
|
|
|
ElectionTimeout time.Duration
|
|
CommitTimeout *time.Duration
|
|
HeartbeatTimeout time.Duration
|
|
LeaderLeaseTimeout time.Duration
|
|
|
|
LogLevel *string
|
|
Logger hclog.Logger
|
|
|
|
WarnWhenLeaderlessFor time.Duration
|
|
}
|