notification

package
v0.0.0-...-dfd8dff Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attachment

type Attachment struct {
	Color      string  `json:"color,omitempty"`
	AuthorName string  `json:"author_name,omitempty"`
	Footer     string  `json:"footer,omitempty"`
	Fields     []Field `json:"fields,omitempty"`
}

type Field

type Field struct {
	Title string `json:"title,omitempty"`
	Value string `json:"value,omitempty"`
	Short bool   `json:"short,omitempty"`
}

type Notification

type Notification struct {
	Hook string
}

func (*Notification) SendFailedMsg

func (n *Notification) SendFailedMsg(ctx context.Context) error

func (*Notification) SendInProgressMsg

func (n *Notification) SendInProgressMsg(ctx context.Context) error

func (*Notification) SendSucceededMsg

func (n *Notification) SendSucceededMsg(ctx context.Context) error

type Webhook

type Webhook struct {
	Attachments []Attachment `json:"attachments,omitempty"`
}

Jump to

Keyboard shortcuts

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