Initial ORION Telemetry service
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package config
|
||||
|
||||
import "os"
|
||||
|
||||
type Config struct {
|
||||
Port string
|
||||
}
|
||||
|
||||
func Load() Config {
|
||||
port := os.Getenv("PORT")
|
||||
if port == "" {
|
||||
port = "18080"
|
||||
}
|
||||
|
||||
return Config{
|
||||
Port: port,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user