diff options
author | Wolfy-J <[email protected]> | 2018-07-26 16:32:27 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-07-26 16:32:27 +0300 |
commit | bcef5b36bb50b2fecd4db4ca8e01640347300bea (patch) | |
tree | b6db6954063dd3288a80f24aa714e8799664d909 /service/env/provider.go | |
parent | 0f8e2bab6888f1b27ed2bd1b91ac6b2677f03450 (diff) |
- added support for custom env provider
- new config section "env" to share env variables with php process
- container can resolve interfaces now
Diffstat (limited to 'service/env/provider.go')
-rw-r--r-- | service/env/provider.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/service/env/provider.go b/service/env/provider.go new file mode 100644 index 00000000..75a1e31b --- /dev/null +++ b/service/env/provider.go @@ -0,0 +1,8 @@ +package env + +// Provider aggregates list of environment variables. This interface can be used in custom implementation to drive +// values from external sources. +type Provider interface { + // GetEnv must return list of env variables. + GetEnv() map[string]string +} |