moved middleware into more relevant location. Adding send test notifications handler. making sure that config is available from web handler functions.
This commit is contained in:
@@ -31,7 +31,7 @@ type Notify struct {
|
||||
Payload Payload
|
||||
}
|
||||
|
||||
func (n *Notify) Send(level string, payload interface{}) error {
|
||||
func (n *Notify) Send() error {
|
||||
//validate that the Payload is populated
|
||||
sendDate := time.Now()
|
||||
n.Payload.Date = sendDate.Format(time.RFC3339)
|
||||
|
||||
Reference in New Issue
Block a user