slack

package module
v1.10.2 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package slack provides a Herald driver for Slack chat delivery.

It supports two modes:

  • Incoming webhook: set "webhook_url" credential
  • Web API (chat.postMessage): set "bot_token" and "channel" credentials

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct{}

Driver delivers messages to Slack channels.

func (*Driver) Channel

func (d *Driver) Channel() string

func (*Driver) Fields

func (d *Driver) Fields() []driver.Field

Fields describes what the Slack driver reads. It posts either through an incoming webhook or through the API with a bot token and a channel; the schema can't express "one of", so nothing is required here and Validate enforces the pairing.

func (*Driver) Name

func (d *Driver) Name() string

func (*Driver) Send

func (*Driver) Validate

func (d *Driver) Validate(credentials, _ map[string]string) error

Jump to

Keyboard shortcuts

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