message

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Level     string   `json:"level"`
	AlertName string   `json:"alert_name"`
	Text      string   `json:"text"`
	Fields    []string `json:"fields,omitempty"`
	Image     string   `json:"image,omitempty"`
}

func New

func New(level, alertName, text string, fields []string, image string) *Message

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL