slack

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNotifier

func NewNotifier(notifierConfig map[string]string) types.Notifier

Types

type Notifier

type Notifier struct {
	*webhook.Notifier
	Channel string
	User    string
	Icon    string
}

func (*Notifier) Name

func (wh *Notifier) Name() string

func (*Notifier) Payload

func (wh *Notifier) Payload(e types.InteractionEvent) ([]byte, error)

func (*Notifier) Send

func (wh *Notifier) Send(event types.InteractionEvent) error

type POSTData

type POSTData struct {
	Channel   string `json:"channel"`
	Username  string `json:"username"`
	IconEmoji string `json:"icon_emoji"`
	Text      string `json:"text"`
}

Jump to

Keyboard shortcuts

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