actions

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2018 License: MIT Imports: 49 Imported by: 0

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"
)
View Source
const (
	// OlympusGlobalEndpoint is a default olympus DNS address
	OlympusGlobalEndpoint = "olympus.gomods.io"
	// OlympusGlobalEndpointOverrideKey overrides default olympus settings
	OlympusGlobalEndpointOverrideKey = "OLYMPUS_GLOBAL_ENDPOINT"
)

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 GetCacheMissReporterJob

func GetCacheMissReporterJob(w worker.Worker, mf *module.Filter) worker.Handler

GetCacheMissReporterJob porcesses queue of cache misses and reports them to Olympus

func GetOlympusEndpoint

func GetOlympusEndpoint() string

GetOlympusEndpoint returns global endpoint with override in mind

func GetProcessCacheMissJob

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

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

func GetStorage

func GetStorage() (storage.BackendConnector, 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