notify

package
v0.0.0-...-45df14b Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2016 License: Apache-2.0 Imports: 14 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifier

type Notifier interface {
	Start() error
	Stop() error
	// Channel gets a single item when something changes.
	Changed() chan int
}

A notifier provides a channel for when the Backend storage area has changed. Callers should then call their Storage engine with List().

func NewCloudFilesPoll

func NewCloudFilesPoll(conf *common.RackspaceCreds, bucketName string) (Notifier, error)

func NewFromConf

func NewFromConf(c *common.Conf) (Notifier, error)

func NewS3Poll

func NewS3Poll(conf *common.AwsCreds, bucketName string) (Notifier, error)

Polls the specified S3 bucket for a new .distsync file every 10 to 20 seconds.

$0.004 per 10,000 requests. 2.62974e6 seconds in a month. 175,316, 15 second periods. 17.5316, 10,000 requests bundles. 17.5316 * $0.0044 = $0.077 per month per watcher for request charges.

type Poller

type Poller interface {
	Poll() (bool, error)
}

Jump to

Keyboard shortcuts

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