WIP CLI
This commit is contained in:
parent
5639cf7a0f
commit
f266afa1de
12 changed files with 209 additions and 74 deletions
20
client/config.go
Normal file
20
client/config.go
Normal file
|
@ -0,0 +1,20 @@
|
|||
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,
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue