config_reader

package module
v0.0.0-...-9fdab00 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2022 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigReader

type ConfigReader interface {
	GetString(key string, defaultVal string) string
	GetInt(key string, defaultVal int) int
	GetHours(key string, defaultVal int) time.Duration
}

type EnvReader

type EnvReader struct{}

func CreateEnvReader

func CreateEnvReader(filename string) (*EnvReader, error)

func (EnvReader) GetHours

func (reader EnvReader) GetHours(key string, defaultVal int) time.Duration

func (EnvReader) GetInt

func (reader EnvReader) GetInt(key string, defaultVal int) int

func (EnvReader) GetString

func (reader EnvReader) GetString(key string, defaultVal string) string

Jump to

Keyboard shortcuts

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