diff options
author | Wolfy-J <[email protected]> | 2018-09-07 23:39:23 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-09-07 23:39:23 +0300 |
commit | 03cf0bac705b83828b6b465363ec68b9f733b7ae (patch) | |
tree | 75cb715f28a96fa04caaef827e7258d75853db47 /service/env/environment.go | |
parent | de629f78c9dddf23d5d79ae49dc5ab8545d0829e (diff) |
improved debug configuration, added env setters
Diffstat (limited to 'service/env/environment.go')
-rw-r--r-- | service/env/environment.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/service/env/environment.go b/service/env/environment.go new file mode 100644 index 00000000..d095009c --- /dev/null +++ b/service/env/environment.go @@ -0,0 +1,11 @@ +package env + +// Provider aggregates list of environment variables. This interface can be used in custom implementation to drive +// values from external sources. +type Environment interface { + // GetEnv must return list of env variables. + GetEnv() (map[string]string, error) + + // SetEnv sets or creates environment value. + SetEnv(key, value string) +}
\ No newline at end of file |