config

package
v0.0.0-...-866b58a Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2021 License: GPL-2.0 Imports: 3 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 {
	Filename              string
	Version               string
	BuildTime             time.Time
	LoadTime              time.Time
	LogLevel              string       `json:"logLevel"`
	LogFilename           string       `json:"logFilename"`
	ShutdownGracePeriodMs int          `json:"shutdownGracePeriodMs"`
	Redis                 *RedisConfig `json:"redis"`
}

func LoadConfig

func LoadConfig(filename string, version string, buildTime time.Time) (*Config, error)

type RedisConfig

type RedisConfig struct {
	ServerUrl      string `json:"serverUrl"`
	ServerPort     string `json:"serverPort"`
	ServerPassword string `json:"serverPassword"`
}

func (*RedisConfig) Verify

func (config *RedisConfig) Verify() error

Jump to

Keyboard shortcuts

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