Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Expression ¶
func (*Expression) UnmarshalText ¶
func (e *Expression) UnmarshalText(text []byte) error
UnmarshalText implements the encoding.TextUnmarshaler interface.
type Notification ¶
type Notification struct { Topic StringExpression `yaml:"topic"` Priority *StringExpression `yaml:"priority"` Tags []*Tag `yaml:"tags"` Templates *Templates `yaml:"templates"` }
type Ntfy ¶
type Ntfy struct { BaseURL string `yaml:"baseurl"` Timeout time.Duration `yaml:"timeout"` Auth *BasicAuth `yaml:"auth"` Notification Notification `yaml:"notification"` }
type StringExpression ¶
type StringExpression struct { Text string Expression *Expression }
func (*StringExpression) UnmarshalText ¶
func (e *StringExpression) UnmarshalText(text []byte) error
UnmarshalText implements the encoding.TextUnmarshaler interface.
type Tag ¶
type Tag struct { Tag string `yaml:"tag"` Condition *Expression `yaml:"condition"` }
type Template ¶
func (*Template) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface.
Click to show internal directories.
Click to hide internal directories.