package notification import ( // External werr "git.gibonuddevalla.se/go/wrappederror" ) func ServiceFactory(t string, config []byte, prio int, ackURL string) (Service, error) { switch t { case "NTFY": return NewNTFY(config, prio, ackURL) } return nil, werr.New("Unknown notification service, '%s'", t).WithCode("002-0000") }