slack

package
v1.9.0 Latest Latest
Warning

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

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

Documentation

Overview

Package slack is the slack notification package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotifyConfig

type NotifyConfig struct {
	base.DefaultNotify `yaml:",inline"`
	WebhookURL         string `yaml:"webhook" json:"webhook" jsonschema:"required,format=uri,title=Webhook URL,description=The Slack webhook URL"`
}

NotifyConfig is the slack notification configuration

func (*NotifyConfig) Config

func (c *NotifyConfig) Config(gConf global.NotifySettings) error

Config configures the slack notification

func (*NotifyConfig) SendSlack added in v1.3.0

func (c *NotifyConfig) SendSlack(title, msg string) error

SendSlack is the wrapper for SendSlackNotification

func (*NotifyConfig) SendSlackNotification

func (c *NotifyConfig) SendSlackNotification(msg string) error

SendSlackNotification will post to an 'Incoming Webhook' url setup in Slack Apps. It accepts some text and the slack channel is saved within Slack.

Jump to

Keyboard shortcuts

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