workers

package
v0.0.0-...-a2990ee Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Queue = make(chan ImageJob)
)

Functions

func StartWorkerPool

func StartWorkerPool(workerCount int, s storage.Storage)

Types

type ImageJob

type ImageJob struct {
	ResponseChan chan image_service.Image
	ErrChan      chan error
	Ctx          context.Context

	Filename string

	// If doing a resize
	Data []byte
	Op   *image_service.ImageOperation

	// If doing a delete
	Delete bool
}

Jump to

Keyboard shortcuts

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