message

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 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"`
	Image     string `json:"image,omitempty"`
}

Message represents a Message struct

func New

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

New returns new Message instance

Jump to

Keyboard shortcuts

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