notifier

package
v0.0.0-...-b629d69 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallbackHandler

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

type CallbackNotifier

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

func NewCallbackNotifier

func NewCallbackNotifier() *CallbackNotifier

func (*CallbackNotifier) Close

func (n *CallbackNotifier) Close()

func (*CallbackNotifier) CreateWaiter

func (*CallbackNotifier) On

func (*CallbackNotifier) OnBtDownloadComplete

func (n *CallbackNotifier) OnBtDownloadComplete(events []rpc.Event)

func (*CallbackNotifier) OnDownloadComplete

func (n *CallbackNotifier) OnDownloadComplete(events []rpc.Event)

func (*CallbackNotifier) OnDownloadError

func (n *CallbackNotifier) OnDownloadError(events []rpc.Event)

func (*CallbackNotifier) OnDownloadPause

func (n *CallbackNotifier) OnDownloadPause(events []rpc.Event)

func (*CallbackNotifier) OnDownloadStart

func (n *CallbackNotifier) OnDownloadStart(events []rpc.Event)

func (*CallbackNotifier) OnDownloadStop

func (n *CallbackNotifier) OnDownloadStop(events []rpc.Event)

func (*CallbackNotifier) Remove

func (n *CallbackNotifier) Remove(ev string, cb *CallbackHandler)

type DefaultNotifier

type DefaultNotifier struct {
	OnDownloadStart      NotifierFunc
	OnDownloadPause      NotifierFunc
	OnDownloadStop       NotifierFunc
	OnDownloadError      NotifierFunc
	OnDownloadComplete   NotifierFunc
	OnBtDownloadComplete NotifierFunc
}

type NotifierCallbackFunc

type NotifierCallbackFunc func(*NotifierEvent)

type NotifierEvent

type NotifierEvent struct {
	Event string
	Gids  []rpc.Event
}

type NotifierFunc

type NotifierFunc func([]rpc.Event)

type NotifierWaitCallbackFunc

type NotifierWaitCallbackFunc func(*NotifierEvent) bool

type NotifierWaiterFunc

type NotifierWaiterFunc func() *NotifierEvent

Jump to

Keyboard shortcuts

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