mirror of
https://github.com/hanzozt/zt.git
synced 2026-10-30 15:04:55 +00:00
32 lines
649 B
Go
32 lines
649 B
Go
package config
|
|
|
|
import (
|
|
"github.com/hashicorp/go-hclog"
|
|
"github.com/openziti/transport/v2"
|
|
"time"
|
|
)
|
|
|
|
type RaftConfig struct {
|
|
Recover bool
|
|
DataDir string
|
|
MinClusterSize uint32
|
|
AdvertiseAddress transport.Address
|
|
BootstrapMembers []string
|
|
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
|
|
}
|