queue

package
v0.0.0-...-220885e Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2017 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	QueueDir string
	Conn     *db.Conn
}

Config provides parameters for the upload queue.

type Queue

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

Queue manages uploads to S3 / Spaces.

func New

func New(cfg *Config) *Queue

New creates a new upload queue.

func (*Queue) Close

func (q *Queue) Close()

Close shuts down the queue.

func (*Queue) Trigger

func (q *Queue) Trigger()

Trigger indicates that a new item has been queued.

Jump to

Keyboard shortcuts

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