notifier

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package notifier provides functions to notify the user about the status of the download.

Index

Constants

This section is empty.

Variables

Notifier is the notifier used to notify the user about the status of the download.

Functions

func NotifyCanceled added in v1.2.0

func NotifyCanceled(
	ctx context.Context,
	channelID string,
	labels map[string]string,
) error

NotifyCanceled notifies the user that the program has canceled the download.

func NotifyConfigReloaded added in v1.2.0

func NotifyConfigReloaded(ctx context.Context) error

NotifyConfigReloaded notifies the user that the configuration has been reloaded.

func NotifyDownloading added in v1.2.0

func NotifyDownloading(
	ctx context.Context,
	channelID string,
	labels map[string]string,
	metadata any,
) error

NotifyDownloading notifies the user that the program is downloading the stream.

func NotifyError added in v1.2.0

func NotifyError(
	ctx context.Context,
	channelID string,
	labels map[string]string,
	err error,
) error

NotifyError notifies the user that the program has encountered an error.

func NotifyFinished added in v1.2.0

func NotifyFinished(
	ctx context.Context,
	channelID string,
	labels map[string]string,
	metadata any,
) error

NotifyFinished notifies the user that the program has finished downloading the stream.

func NotifyIdle added in v1.2.0

func NotifyIdle(ctx context.Context, channelID string, labels map[string]string) error

NotifyIdle notifies the user that the stream is idle.

func NotifyLoginFailed added in v1.3.0

func NotifyLoginFailed(ctx context.Context, capture error) error

NotifyLoginFailed notifies the user that the login has failed.

func NotifyPanicked added in v1.2.0

func NotifyPanicked(ctx context.Context, capture any) error

NotifyPanicked notifies the user that the download has panicked.

func NotifyPostProcessing added in v1.2.0

func NotifyPostProcessing(
	ctx context.Context,
	channelID string,
	labels map[string]string,
	metadata any,
) error

NotifyPostProcessing notifies the user that the program is post processing the stream.

func NotifyPreparingFiles added in v1.2.0

func NotifyPreparingFiles(
	ctx context.Context,
	channelID string,
	labels map[string]string,
	metadata any,
) error

NotifyPreparingFiles notifies the user that the program is preparing the files for the stream.

Types

This section is empty.

Jump to

Keyboard shortcuts

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