test up in subscribe

mostly working
This commit is contained in:
Karmanyaah Malhotra 2021-12-30 00:51:04 -06:00
parent 85126a4403
commit 10e0b23a51
4 changed files with 84 additions and 89 deletions

View file

@ -1,8 +1,9 @@
package client
import (
"gopkg.in/yaml.v2"
"os"
"gopkg.in/yaml.v2"
)
const (
@ -18,13 +19,16 @@ type Config struct {
Command string `yaml:"command"`
If map[string]string `yaml:"if"`
} `yaml:"subscribe"`
EnableUnifiedPush bool `yaml:"enable_unifiedpush"`
}
// NewConfig creates a new Config struct for a Client
func NewConfig() *Config {
return &Config{
DefaultHost: DefaultBaseURL,
Subscribe: nil,
DefaultHost: DefaultBaseURL,
Subscribe: nil,
EnableUnifiedPush: true,
}
}