slack_utils

package
v0.95.2 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ColorGreen  = "#36a64f"
	ColorRed    = "#ff0000"
	ColorYellow = "#f5cc45"
	ColorBlue   = "#add8e6"
	SlIconURL   = "https://avatars.githubusercontent.com/u/16311959?s=200&v=4"
)

Variables

View Source
var StatusError = StatusStyle{
	Color: ColorRed,
	Icon:  "❌",
}
View Source
var StatusInfo = StatusStyle{
	Color: ColorBlue,
	Icon:  "ℹ️",
}
View Source
var StatusSuccess = StatusStyle{
	Color: ColorGreen,
	Icon:  "✅",
}
View Source
var StatusWarning = StatusStyle{
	Color: ColorYellow,
	Icon:  "⚠️",
}

Functions

func SendNotification

func SendNotification(notification Notification) error

Types

type Notification

type Notification struct {
	URLs    []string
	Source  string
	Status  string
	Title   string
	Message string
}

type StatusStyle

type StatusStyle struct {
	Color string
	Icon  string
}

Jump to

Keyboard shortcuts

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