Documentation ¶
Index ¶
- Constants
- Variables
- func App() (*buffalo.App, error)
- func GetCacheMissReporterJob(w worker.Worker, mf *module.Filter) worker.Handler
- func GetOlympusEndpoint() string
- func GetProcessCacheMissJob(ctx context.Context, s storage.Backend, w worker.Worker, mf *module.Filter) worker.Handler
- func GetStorage() (storage.BackendConnector, error)
- func GoGet(getter cdnmetadata.Getter) buffalo.MiddlewareFunc
Constants ¶
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" )
const ( // OlympusGlobalEndpoint is a default olympus DNS address OlympusGlobalEndpoint = "olympus.gomods.io" // OlympusGlobalEndpointOverrideKey overrides default olympus settings OlympusGlobalEndpointOverrideKey = "OLYMPUS_GLOBAL_ENDPOINT" )
Variables ¶
var ENV = env.GoEnvironmentWithDefault("development")
ENV is used to help switch settings based on where the application is being run. Default is "development".
var T *i18n.Translator
T is the translator to use
Functions ¶
func App ¶
App is where all routes and middleware for buffalo should be defined. This is the nerve center of your application.
func GetCacheMissReporterJob ¶
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 ¶
func GoGet(getter cdnmetadata.Getter) buffalo.MiddlewareFunc
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.