config

package
v0.0.0-...-2f87fcc Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2023 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnv

func GetEnv() *string

func InitConfig

func InitConfig()

func PrintConfig

func PrintConfig()

func SetConfig

func SetConfig(configName string)

func Validate

func Validate(c *Config) bool

Types

type Config

type Config struct {
	Username               string
	Password               string
	Database               string
	DBPort                 string
	RedisPort              string
	RPCPort                string
	HttpPort               string
	Host                   string
	DBDriver               string
	ApiKeyPublic           string
	ApiKeyPrivate          string
	MaxRetentionTimeInDays int
	IntervalInSeconds      int
	IntervalInDays         int
}

func GetConfig

func GetConfig() *Config

Jump to

Keyboard shortcuts

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