slack

package
v0.0.0-...-efb87f3 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Slack

type Slack struct {
	Username string `json:"username" description:"The username to use in Slack, leave empty to use username defined in the Slack integration"`
	URL      string `json:"url" description:"A web hook URL in the format https://hooks.slack.com/services/XXXXXX/YYYY/ZZZZZZ"`
	Channel  string `json:"channel" description:"The channel to post notification in. Include #"`
}

Slack will notify Slack using an incoming webhook. Please see: https://api.slack.com/incoming-webhooks

func (*Slack) Notify

func (s *Slack) Notify(text string) error

Notify implement plugins.Notifier

Jump to

Keyboard shortcuts

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