Documentation ¶
Overview ¶
Package notifier provides functions to notify the user about the status of the download.
Index ¶
- Variables
- func NotifyCanceled(ctx context.Context, channelID string, labels map[string]string) error
- func NotifyConfigReloaded(ctx context.Context) error
- func NotifyDownloading(ctx context.Context, channelID string, labels map[string]string, metadata any) error
- func NotifyError(ctx context.Context, channelID string, labels map[string]string, err error) error
- func NotifyFinished(ctx context.Context, channelID string, labels map[string]string, metadata any) error
- func NotifyIdle(ctx context.Context, channelID string, labels map[string]string) error
- func NotifyLoginFailed(ctx context.Context, capture error) error
- func NotifyPanicked(ctx context.Context, capture any) error
- func NotifyPostProcessing(ctx context.Context, channelID string, labels map[string]string, metadata any) error
- func NotifyPreparingFiles(ctx context.Context, channelID string, labels map[string]string, metadata any) error
- func NotifyUpdateAvailable(ctx context.Context, version string) error
Constants ¶
This section is empty.
Variables ¶
var Notifier *notify.FormatedNotifier = notify.NewFormatedNotifier( notify.NewDummyNotifier(), notify.DefaultNotificationFormats, )
Notifier is the notifier used to notify the user about the status of the download.
Functions ¶
func NotifyCanceled ¶ added in v1.2.0
NotifyCanceled notifies the user that the program has canceled the download.
func NotifyConfigReloaded ¶ added in v1.2.0
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
NotifyIdle notifies the user that the stream is idle.
func NotifyLoginFailed ¶ added in v1.3.0
NotifyLoginFailed notifies the user that the login has failed.
func NotifyPanicked ¶ added in v1.2.0
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.
Types ¶
This section is empty.