Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Engine Engine `yaml:"engine"`
Network Network `env-prefix:"NETWORK_" yaml:"network"`
Logging Logging `env-prefix:"LOG_" yaml:"logging"`
WAL WAL `yaml:"wal"`
Replication Replication `env-prefix:"REPLICA_" yaml:"replication"`
}
type Network ¶
type Network struct {
Addr string `env:"ADDR" env-default:":7991" yaml:"addr"`
MaxConnections int `env-default:"100" yaml:"max_connections"`
MaxMessageSize int `env-default:"4096" yaml:"max_message_size"`
IdleTimeout time.Duration `yaml:"idle_timeout"`
WriteTimeout time.Duration `yaml:"write_timeout"`
}
func (Network) ServerOptions ¶
func (c Network) ServerOptions() []network.TCPServerOption
type Replication ¶ added in v1.2.0
type WAL ¶ added in v1.1.0
type WAL struct {
FlushBatchSize int `env-default:"100" yaml:"flushing_batch_size"`
FlushBatchInterval time.Duration `env-default:"10ms" yaml:"flushing_batch_interval"`
MaxSegmentSize int `env-default:"1048576" yaml:"max_segment_size"`
DataDir string `env-default:"/data/memdb/wal" yaml:"data_directory"`
Enabled bool `yaml:"enabled"`
}
Click to show internal directories.
Click to hide internal directories.