// UnmarshalYAML implements the yaml.Unmarshaler interface.
UnmarshalYAML implements the yaml.Unmarshaler interface.
// UnmarshalYAML implements the yaml . Unmarshaler interface .
func (c *PushoverConfig) UnmarshalYAML(unmarshal func(interface{}) error) error {
	*c = DefaultPushoverConfig
	type plain PushoverConfig
	if err := unmarshal((*plain)(c)); err != nil {
		return err
	}
	if c.UserKey == "" {
		return fmt.Errorf("missing user key in Pushover config")
	}
	if c.Token == "" {
		return fmt.Errorf("missing token in Pushover config")
	}
	return checkOverflow(c.XXX, "pushover config")
}
func ( c * PushoverConfig ) UnmarshalYAML ( unmarshal func ( interface { } ) error ) error { * c = DefaultPushoverConfig type plain PushoverConfig if err := unmarshal ( ( * plain ) ( c ) ) ; err != nil { return err } if c . UserKey == " " { return fmt . Errorf ( " " ) } if c . Token == " " { return fmt . Errorf ( " " ) } return checkOverflow ( c . XXX , " " ) }
UnmarshalYAML implements the yaml.Unmarshaler interface.
UnmarshalYAML implements the yaml . Unmarshaler interface .