notification

package
v0.0.0-...-a6ec481 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2017 License: MIT Imports: 1 Imported by: 1

Documentation

Overview

Package notification allows to forward notifications from an Emitter to a Handler

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Forward

Forward the notifications from the emitter to the handler

Types

type BtCompletedHandler

type BtCompletedHandler interface {
	BtCompleted([]argo.GID)
}

BtCompletedHandler handles onBtDownloadComplete

type CompletedHandler

type CompletedHandler interface {
	Completed([]argo.GID)
}

CompletedHandler handles onDownloadComplete

type ErrorHandler

type ErrorHandler interface {
	Error([]argo.GID)
}

ErrorHandler handles onDownloadError

type PausedHandler

type PausedHandler interface {
	Paused([]argo.GID)
}

PausedHandler handles onDownloadPause

type StartedHandler

type StartedHandler interface {
	Started([]argo.GID)
}

StartedHandler handles onDownloadStart

type StoppedHandler

type StoppedHandler interface {
	Stopped([]argo.GID)
}

StoppedHandler handles onDownloadStop

type UnknownHandler

type UnknownHandler interface {
	Unknown(identifier string, gid []argo.GID)
}

UnknownHandler handles unknown notifications

Jump to

Keyboard shortcuts

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