slack_utils

package
v1.277.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SlackClient

type SlackClient struct {
	Client *slack.Client
}

func GetClient

func GetClient(apiKey string) *SlackClient

func (*SlackClient) SendAlert

func (s *SlackClient) SendAlert(message string, channel string, parentMessageTimestamp ...string) string

func (*SlackClient) SendAlertWithFields

func (s *SlackClient) SendAlertWithFields(message string, channel string, slackFields []SlackField, parentMessageTimestamp ...string) string

type SlackField

type SlackField struct {
	Label string
	Value any
}

Jump to

Keyboard shortcuts

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