Makefile, Dockerfile, GoReleaser, config.yml, systemd service
This commit is contained in:
18
config/config.go
Normal file
18
config/config.go
Normal file
@@ -0,0 +1,18 @@
|
||||
// Package config provides the main configuration
|
||||
package config
|
||||
|
||||
const (
|
||||
DefaultListenHTTP = ":80"
|
||||
)
|
||||
|
||||
// Config is the main config struct for the application. Use New to instantiate a default config struct.
|
||||
type Config struct {
|
||||
ListenHTTP string
|
||||
}
|
||||
|
||||
// New instantiates a default new config
|
||||
func New(listenHTTP string) *Config {
|
||||
return &Config{
|
||||
ListenHTTP: listenHTTP,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user