mirror of
https://github.com/binwiederhier/ntfy.git
synced 2024-11-22 19:17:35 +03:00
21 lines
268 B
Go
21 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,
|
|
}
|
|
}
|