pusher

package
v0.0.0-...-1de5769 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2018 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pusher

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

Pusher is responsible for uploading photos from a camera to a remote location. It only uploads photos that don't exist remotely, in an effort to reduce bandwidth usage.

func New

func New(cfg *config.Config) (*Pusher, error)

New creates a new Pusher.

func (*Pusher) Run

func (p *Pusher) Run()

Run runs the Pusher's upload functionality in a loop forever.

type UnhandledError

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

UnhandledError implements the error interface, allowing us to wrap lower-level errors and return a useful representation to clients.

func (*UnhandledError) Error

func (e *UnhandledError) Error() string

Jump to

Keyboard shortcuts

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