teams

package
v4.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config *model.NotifTeams, meta model.Meta) notifier.Notifier

New creates a new webhook notification instance

Types

type Client

type Client struct {
	*notifier.Notifier
	// contains filtered or unexported fields
}

Client represents an active webhook notification object

func (*Client) Name

func (c *Client) Name() string

Name returns notifier's name

func (*Client) Send

func (c *Client) Send(entry model.NotifEntry) error

Send creates and sends a webhook notification with an entry

type Fact

type Fact struct {
	Name  string `json:"Name"`
	Value string `json:"Value"`
}

Fact is grouping data togheter to create a nested json element containg a name and an associated value

type Sections

type Sections struct {
	ActivityTitle    string `json:"activityTitle"`
	ActivitySubtitle string `json:"activitySubtitle"`
	Facts            []Fact `json:"facts"`
}

Sections is grouping data together containing title, subtitle and facts and creating a nested json element

Jump to

Keyboard shortcuts

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