config

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Defaults = map[string]interface{}{
	"server.host":            "0.0.0.0",
	"server.port":            7275,
	"server.protocol":        "tcp",
	"server.multicore":       false,
	"server.reuse_port":      false,
	"server.read_buffer_cap": 0x2000000,
	"server.tcp_keep_alive":  10 * time.Minute,

	"log.path":        "/var/log/kvstore/kvstore-server.log",
	"log.level":       -1,
	"log.max_size":    10,
	"log.max_backups": 6,
	"log.max_age":     28,
	"log.compress":    true,

	"aof.enabled":       true,
	"aof.path":          "./kvstore-aof.log",
	"aof.persist_after": time.Minute,
}

Defaults is the default configuration values and is used when a configuration file was not found

Functions

func Load

func Load(path ...string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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