mirror of
https://github.com/gomods/athens
synced 2026-02-11 22:08:08 +00:00
* Athens: introduce log package * log: add buffalo doc note * log: add cloud runtime based formatting * log: add log level to constructor * log: remove nil err from fmtBuffaloErr * log: use switch statement in buffaloFormatter.Format * log: rearrange .go files * log: change cloudruntime development to none * Olympus: add buffalo logger
12 lines
228 B
Go
12 lines
228 B
Go
package env
|
|
|
|
import (
|
|
"github.com/gobuffalo/envy"
|
|
)
|
|
|
|
// CloudRuntime returns the Cloud Provider
|
|
// underneath which the Proxy/Registry is running.
|
|
func CloudRuntime() string {
|
|
return envy.Get("ATHENS_CLOUD_RUNTIME", "none")
|
|
}
|