config

package module
v0.0.0-...-af5cd25 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2020 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(filepath string) error

func Validate

func Validate() error

Types

type Config

type Config struct {
	BindAddr                    string `json:"bind_addr"`
	ExpiresDefaultDurationSec   int64  `json:"expires_default_duration_sec"`
	ReplicationActiveQuequeSize int64  `json:"replication_active_queque_size"`
	ReplicationRotateEveryMs    int64  `json:"replication_rotate_every_ms"`
	ShedulerDelExpiredEverySec  int64  `json:"sheduler_del_expired_every_sec"`
	ShedulerExpiredQuequeSize   int64  `json:"sheduler_expired_queque_size"`
}

type config struct { // TODO

func GetConfig

func GetConfig() *Config

Jump to

Keyboard shortcuts

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