config.go 268 B

1234567891011121314151617181920
  1. package client
  2. const (
  3. DefaultBaseURL = "https://ntfy.sh"
  4. )
  5. type Config struct {
  6. DefaultHost string
  7. Subscribe []struct {
  8. Topic string
  9. Command string
  10. }
  11. }
  12. func NewConfig() *Config {
  13. return &Config{
  14. DefaultHost: DefaultBaseURL,
  15. Subscribe: nil,
  16. }
  17. }