actions

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2018 License: MIT Imports: 49 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// FetcherWorkerName is the name of the worker fetching sources from experienced cache misses
	FetcherWorkerName = "olympusfetcher"
	// ReporterWorkerName is the name of the worker reporting cache misses
	ReporterWorkerName = "olympusreporter"
)

Variables

View Source
var ENV = env.GoEnvironmentWithDefault("development")

ENV is used to help switch settings based on where the application is being run. Default is "development".

T is the translator to use

Functions

func App

func App() (*buffalo.App, error)

App is where all routes and middleware for buffalo should be defined. This is the nerve center of your application.

func GetProcessCacheMissJob

func GetProcessCacheMissJob(ctx context.Context, s storage.Backend, w worker.Worker) worker.Handler

GetProcessCacheMissJob processes queue of cache misses and downloads sources from active Olympus

func GetStorage

func GetStorage() (storage.Backend, error)

GetStorage returns storage backend based on env configuration

func GoGet

GoGet is middleware that checks for the 'go-get=1' query string. If it exists, uses getter to determine the redirect location

Types

This section is empty.

Jump to

Keyboard shortcuts

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