config

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

func ReadConfig

func ReadConfig(configName string, logger *logs.Logger) Reader

func (*Reader) Duration

func (reader *Reader) Duration(sectionName, key string) time.Duration

func (*Reader) GetServerAndRestAPIAddress

func (reader *Reader) GetServerAndRestAPIAddress(serverType utils.ServerType) (ipAddress, restAPIAddress string)

func (*Reader) Integer

func (reader *Reader) Integer(sectionName, key string) int

func (*Reader) String

func (reader *Reader) String(sectionName, key string) string

func (*Reader) SubsectionValues

func (reader *Reader) SubsectionValues(sectionName, key string) []string

func (*Reader) Subsections

func (reader *Reader) Subsections(sectionName string, level int) []string

func (*Reader) Values

func (reader *Reader) Values(sectionName string) map[string]string

Jump to

Keyboard shortcuts

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