Merged in feature/baseTemplate (pull request #1)
feat!: base template * first bit of templating * codeowners * linuxbased * restart * baseline project * add grpc api and basic integration test * startqueue * queueMsg * splitscripts * migrations * queueintegrationtest * gateway
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
package common
|
||||
|
||||
type EnvKeyType string
|
||||
|
||||
// EnvKey is a context key that can be used to set programmatically the environment
|
||||
// gopsutil relies on to perform calls against the OS.
|
||||
// Example of use:
|
||||
//
|
||||
// ctx := context.WithValue(context.Background(), common.EnvKey, EnvMap{common.HostProcEnvKey: "/myproc"})
|
||||
// avg, err := load.AvgWithContext(ctx)
|
||||
var EnvKey = EnvKeyType("env")
|
||||
|
||||
const (
|
||||
HostProcEnvKey EnvKeyType = "HOST_PROC"
|
||||
HostSysEnvKey EnvKeyType = "HOST_SYS"
|
||||
HostEtcEnvKey EnvKeyType = "HOST_ETC"
|
||||
HostVarEnvKey EnvKeyType = "HOST_VAR"
|
||||
HostRunEnvKey EnvKeyType = "HOST_RUN"
|
||||
HostDevEnvKey EnvKeyType = "HOST_DEV"
|
||||
HostRootEnvKey EnvKeyType = "HOST_ROOT"
|
||||
)
|
||||
|
||||
type EnvMap map[EnvKeyType]string
|
||||
Reference in New Issue
Block a user