Documentation ¶
Index ¶
Constants ¶
View Source
const ID = "env"
ID contains default service name.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config defines set of env values for RR workers.
func (*Config) Hydrate ¶
Hydrate must populate Config values using given Config source. Must return error if Config is not valid.
func (*Config) InitDefaults ¶ added in v1.2.2
InitDefaults allows to init blank config with pre-defined set of default values.
type Environment ¶ added in v1.2.0
type Environment interface { Setter Getter // Copy all environment values. Copy(setter Setter) error }
Environment aggregates list of environment variables. This interface can be used in custom implementation to drive values from external sources.
type Getter ¶ added in v1.3.0
type Getter interface { // GetEnv must return list of env variables. GetEnv() (map[string]string, error) }
Getter provides ability to set environment value.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service provides ability to map _ENV values from config file.
func NewService ¶
NewService creates new env service instance for given rr version.
Click to show internal directories.
Click to hide internal directories.