Skip to content

Generic notification library for sending messages to notification providers

Notifications You must be signed in to change notification settings

Coveros-Archive/Notification-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notification-library

Generic notification library for sending messages to notification providers

Supported providers:

  • Slack
    • Example usage:
    import "cNotifyLib "github.com/Coveros/notification-library"
    
    func main() {
      slackNotifier := cNotifyLib.NewNotificationProvider(cNotifyLib.Slack, os.Getenv("SLACK_BOT_TOKEN"))
      err := slackNotifier.SendMsg(cNotifyLib.NotifyTemplate{
      		Channel:   "SLACK_CHANNEL_ID",
      		Title:     "Hello world!",
      		Text:      "This is a text",
      		EventType: cNotifyLib.Warning,
        Fields: map[string]string{ "field1": "value" }
      	})
    }
    
  • Discord
  • Hipchat
  • Microsoft teams

About

Generic notification library for sending messages to notification providers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages