summaryrefslogtreecommitdiff
path: root/service/env/environment.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-09-07 23:39:23 +0300
committerWolfy-J <[email protected]>2018-09-07 23:39:23 +0300
commit03cf0bac705b83828b6b465363ec68b9f733b7ae (patch)
tree75cb715f28a96fa04caaef827e7258d75853db47 /service/env/environment.go
parentde629f78c9dddf23d5d79ae49dc5ab8545d0829e (diff)
improved debug configuration, added env setters
Diffstat (limited to 'service/env/environment.go')
-rw-r--r--service/env/environment.go11
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