Docblocks, a handful of tests, but not enough

This commit is contained in:
Philipp Heckel
2021-12-19 14:27:26 -05:00
parent fa9d6444f5
commit e3dfea1991
9 changed files with 121 additions and 12 deletions

View File

@@ -1,9 +1,11 @@
package client
const (
// DefaultBaseURL is the base URL used to expand short topic names
DefaultBaseURL = "https://ntfy.sh"
)
// Config is the config struct for a Client
type Config struct {
DefaultHost string
Subscribe []struct {
@@ -12,6 +14,7 @@ type Config struct {
}
}
// NewConfig creates a new Config struct for a Client
func NewConfig() *Config {
return &Config{
DefaultHost: DefaultBaseURL,