// NewNotifier creates a new notifier
NewNotifier creates a new notifier
// NewNotifier creates a new notifier
func NewNotifier(name string, ntype NotifierType, metadata map[string]string) (Notifier, error) {
	err := validate(name, ntype, metadata)
	if err != nil {
		return Notifier{}, err
	}
	return Notifier{Name: name, Type: ntype, Metadata: metadata}, nil
}
func NewNotifier ( name string , ntype NotifierType , metadata map [ string ] string ) ( Notifier , error ) { err := validate ( name , ntype , metadata ) if err != nil { return Notifier { } , err } return Notifier { Name : name , Type : ntype , Metadata : metadata } , nil }
NewNotifier creates a new notifier
NewNotifier creates a new notifier