notify

package
Version: v4.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileNotifier

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

FileNotifier implements basic Notifier using file storage

func NewFileNotifier

func NewFileNotifier() *FileNotifier

NewFileNotifier constructor

func (*FileNotifier) Init

func (n *FileNotifier) Init(data []byte) error

Init ...

func (*FileNotifier) Notify

func (n *FileNotifier) Notify(fileName string) error

Notify ...

type Notifier

type Notifier interface {
	// Notify sends fileName string to the a queue beneath
	Notify(fileName string) error

	// Init initializes notifier with configuration
	Init(data []byte) error
}

Notifier is the interface that wraps basic Notify method

type VoidNotifier

type VoidNotifier struct{}

VoidNotifier dummy notifier

func (VoidNotifier) Init

func (v VoidNotifier) Init(data []byte) error

Init ...

func (VoidNotifier) Notify

func (v VoidNotifier) Notify(fileName string) error

Notify ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL