discord

package
v0.0.0-...-07d62d3 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Context to use when logging
	Context = "DISCORD"

	// EnvWebhookAddress to use to relay Discord messages to the chat
	EnvWebhookAddress = "FLU_DISCORD_WEBHOOK"
)
View Source
const (
	SeverityInformational = iota
	SeverityNotice
	SeverityAlarm
)

Levels of logging severity for Discord users to discern based on the border of the message

Variables

This section is empty.

Functions

func Notify

func Notify(severity int, format string, arguments ...interface{})

Notify the Discord in the specified channel, with the severity specified and a message. No guarantee to arrive in order!

func NotifyWithAttachment

func NotifyWithAttachment(severity int, formatted string, attachments map[string]io.Reader)

Types

This section is empty.

Jump to

Keyboard shortcuts

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