forked from mirrors/ntfy
20 lines
268 B
Go
20 lines
268 B
Go
package client
|
|
|
|
const (
|
|
DefaultBaseURL = "https://ntfy.sh"
|
|
)
|
|
|
|
type Config struct {
|
|
DefaultHost string
|
|
Subscribe []struct {
|
|
Topic string
|
|
Command string
|
|
}
|
|
}
|
|
|
|
func NewConfig() *Config {
|
|
return &Config{
|
|
DefaultHost: DefaultBaseURL,
|
|
Subscribe: nil,
|
|
}
|
|
}
|