config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2022 License: MIT Imports: 2 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 {
	Architecture    string
	OperatingSystem string
	BaseFilename    string
	DirectiveLine   int
	PackageName     string
}

Config defines environment configuration given to the app.

type Service

type Service interface {
	Read() (*Config, error)
}

Service allows for interfaceng with environment config.

type ServiceImpl

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

ServiceImpl implements service.

func NewServiceImpl

func NewServiceImpl(source goConfig.Source) *ServiceImpl

NewServiceImpl is a constructor.

func (*ServiceImpl) Read

func (s *ServiceImpl) Read() (*Config, error)

Read reads the environment into Config. If there are any issues, an error is returned.

Jump to

Keyboard shortcuts

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