readers

package
v0.0.0-...-fe2e1c2 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2020 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationConfigReader

type ApplicationConfigReader interface {
	Read() (*model2.ApplicationConfig, error)
}

Interface for reading application configuration

type EnvApplicationConfigReader

type EnvApplicationConfigReader struct {
	ApplicationConfigReader
}

Reads application configuration properties from OS Environment Variables

func NewEnvApplicationConfigReader

func NewEnvApplicationConfigReader() *EnvApplicationConfigReader

func (*EnvApplicationConfigReader) Read

type JsonApplicationConfigReader

type JsonApplicationConfigReader struct {
	ApplicationConfigReader
	// contains filtered or unexported fields
}

Reads application configuration properties from specified JSON file

func NewJsonApplicationConfigReader

func NewJsonApplicationConfigReader(path string) *JsonApplicationConfigReader

func (*JsonApplicationConfigReader) Read

type YamlApplicationConfigReader

type YamlApplicationConfigReader struct {
	ApplicationConfigReader
	// contains filtered or unexported fields
}

Reads application configuration properties from specified YAML file

func NewYamlApplicationConfigReader

func NewYamlApplicationConfigReader(path string) *YamlApplicationConfigReader

func (*YamlApplicationConfigReader) Read

Jump to

Keyboard shortcuts

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