This commit is contained in:
Philipp Heckel 2021-11-02 14:08:21 -04:00
parent b775e6dfce
commit 67922b0ae5
8 changed files with 175 additions and 6 deletions

View file

@ -28,6 +28,7 @@ var (
// Config is the main config struct for the application. Use New to instantiate a default config struct.
type Config struct {
ListenHTTP string
CacheFile string
FirebaseKeyFile string
MessageBufferDuration time.Duration
KeepaliveInterval time.Duration
@ -42,6 +43,7 @@ type Config struct {
func New(listenHTTP string) *Config {
return &Config{
ListenHTTP: listenHTTP,
CacheFile: "",
FirebaseKeyFile: "",
MessageBufferDuration: DefaultMessageBufferDuration,
KeepaliveInterval: DefaultKeepaliveInterval,