Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { TLS bool `json:"TLS" yaml:"TLS"` MTLS bool `json:"MTLS" yaml:"MTLS"` CertKeyPairs [][]string `json:"CertKeyPairs" yaml:"CertKeyPairs"` ClientCAs []string `json:"ClientCAs" yaml:"ClientCAs"` Port uint16 `json:"Port" yaml:"Port"` ServerID string `json:"ServerId" yaml:"ServerId"` JoinAddr string `json:"JoinAddr" yaml:"JoinAddr"` BindAddr string `json:"BindAddr" yaml:"BindAddr"` DataDir string `json:"DataDir" yaml:"DataDir"` BootstrapCluster bool `json:"BootstrapCluster" yaml:"BootstrapCluster"` AclConfig string `json:"AclConfig" yaml:"AclConfig"` ForwardCommand bool `json:"ForwardCommand" yaml:"ForwardCommand"` RequirePass bool `json:"RequirePass" yaml:"RequirePass"` Password string `json:"Password" yaml:"Password"` SnapShotThreshold uint64 `json:"SnapshotThreshold" yaml:"SnapshotThreshold"` SnapshotInterval time.Duration `json:"SnapshotInterval" yaml:"SnapshotInterval"` RestoreSnapshot bool `json:"RestoreSnapshot" yaml:"RestoreSnapshot"` RestoreAOF bool `json:"RestoreAOF" yaml:"RestoreAOF"` AOFSyncStrategy string `json:"AOFSyncStrategy" yaml:"AOFSyncStrategy"` MaxMemory uint64 `json:"MaxMemory" yaml:"MaxMemory"` EvictionPolicy string `json:"EvictionPolicy" yaml:"EvictionPolicy"` EvictionSample uint `json:"EvictionSample" yaml:"EvictionSample"` EvictionInterval time.Duration `json:"EvictionInterval" yaml:"EvictionInterval"` Modules []string `json:"Plugins" yaml:"Plugins"` DiscoveryPort uint16 `json:"DiscoveryPort" yaml:"DiscoveryPort"` RaftBindAddr string RaftBindPort uint16 }
func DefaultConfig ¶
func DefaultConfig() Config
Click to show internal directories.
Click to hide internal directories.