config

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 13 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 {
	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

func GetConfig

func GetConfig() (Config, error)

Jump to

Keyboard shortcuts

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