mirror of
https://github.com/binwiederhier/ntfy.git
synced 2024-12-14 11:47:33 +00:00
20 lines
264 B
Go
20 lines
264 B
Go
package client
|
|
|
|
const (
|
|
DefaultBaseURL = "https://ntfy.sh"
|
|
)
|
|
|
|
type Config struct {
|
|
DefaultHost string
|
|
Subscribe []struct {
|
|
Topic string
|
|
Exec string
|
|
}
|
|
}
|
|
|
|
func NewConfig() *Config {
|
|
return &Config{
|
|
DefaultHost: DefaultBaseURL,
|
|
Subscribe: nil,
|
|
}
|
|
}
|