Documentation ¶
Index ¶
- Constants
- Variables
- type Reader
- type ServiceConfig
- func (c *ServiceConfig) AddDefaults(defaultModel interface{})
- func (c *ServiceConfig) AddFlags(flagSet *flag.FlagSet)
- func (c ServiceConfig) ConfigBytes() ([]byte, error)
- func (c ServiceConfig) ConfigPath() string
- func (c ServiceConfig) PrintUsage()
- func (c ServiceConfig) Read(model interface{}) error
Constants ¶
View Source
const ( ConfigPathEnvVar = "CONFIG_PATH" ConfigEnvVar = "CONFIG" )
Variables ¶
View Source
var NoConfigError = errors.New("No Config or Config Path Specified. Please supply one of the following: -config, -configPath, CONFIG, or CONFIG_PATH")
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func (Reader) ReadWithDefaults ¶
type ServiceConfig ¶
type ServiceConfig struct {
// contains filtered or unexported fields
}
func New ¶
func New() *ServiceConfig
func (*ServiceConfig) AddDefaults ¶
func (c *ServiceConfig) AddDefaults(defaultModel interface{})
func (*ServiceConfig) AddFlags ¶
func (c *ServiceConfig) AddFlags(flagSet *flag.FlagSet)
func (ServiceConfig) ConfigBytes ¶
func (c ServiceConfig) ConfigBytes() ([]byte, error)
func (ServiceConfig) ConfigPath ¶
func (c ServiceConfig) ConfigPath() string
func (ServiceConfig) PrintUsage ¶
func (c ServiceConfig) PrintUsage()
func (ServiceConfig) Read ¶
func (c ServiceConfig) Read(model interface{}) error
Click to show internal directories.
Click to hide internal directories.