Commit 62f1a2f4 authored by nimrod's avatar nimrod
Browse files

Notification mechanism.

Send notifications to me.
parent 1b4f4640
Loading
Loading
Loading
Loading
Loading

pkg/notify/nimrod.go

0 → 100644
+18 −0
Original line number Diff line number Diff line
/*
Simple mechanism to notify Nimrod.
*/
package notify

import (
	"net/http"
	"net/url"
)

/*
Send a notification to Nimrod.
*/
func Notify(message string) error {
	_, err := http.PostForm("https://notify.shore.co.il/send", url.Values{"message": {message}})
	return err

}