notifications

package
v2.9.2 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 24 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package notifications

Index

Constants

View Source
const (
	Notify       = "notify"
	ShouldNotify = "should-notify"
)
View Source
const (
	PreRun Phase = iota
	PostRun

	StartingTitle = "Starting Speedtest"
	SuccessTitle  = "Finished Speedtest"
	ErrorTitle    = "Failed Speedtest"
)
View Source
const (
	Actor = "notifications"
)

Variables

This section is empty.

Functions

func RegisterActors added in v2.7.1

func RegisterActors(opts NotifierOpts) error

func SendTelegram added in v2.6.0

func SendTelegram(
	ctx context.Context,
	sender telegramMessageSender,
	n config.Notification,
	uiURL string,
	phase Phase,
	result results.Result,
) error

Types

type NotificationError

type NotificationError struct {
	Errors     []error
	Redactions []string
}

func (NotificationError) Error

func (ne NotificationError) Error() string

func (NotificationError) Nil added in v2.7.1

func (n NotificationError) Nil() bool

type Notifier

type Notifier struct {
	// contains filtered or unexported fields
}

func (*Notifier) Invoke added in v2.7.1

func (n *Notifier) Invoke(ctx context.Context, method string, data actor.Envelope) (any, error)

type NotifierOpts added in v2.6.0

type NotifierOpts struct {
	Host          *local.Host
	UIURL         string
	Notifications config.Notifications
	Telegram      telegramMessageSender
}

type NotifyInput added in v2.7.1

type NotifyInput struct {
	Result results.Result
	Phase  Phase
}

type Phase

type Phase int

func (Phase) String added in v2.7.1

func (p Phase) String() string

Jump to

Keyboard shortcuts

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