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: 44 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// OlympusWorkerName is the name of the Olympus worker
	OlympusWorkerName = "olympus-worker"
	// DownloadHandlerName is name of the handler downloading packages from VCS
	DownloadHandlerName = "download-handler"
	// PushNotificationHandlerName is the name of the handler processing push notifications
	PushNotificationHandlerName = "push-notification-worker"
)

Variables

View Source
var (

	// ENV is used to help switch settings based on where the
	// application is being run. Default is "development".
	ENV = env.GoEnvironmentWithDefault("development")
	// T is buffalo Translator
	T *i18n.Translator
)

Functions

func App

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

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

func GetEventLog

func GetEventLog() (eventlog.Eventlog, error)

GetEventLog returns implementation of eventlog.EventLog

func GetProcessPushNotificationJob

func GetProcessPushNotificationJob(storage storage.Backend, eLog eventlog.Eventlog) worker.Handler

GetProcessPushNotificationJob processes queue of push notifications

func GetStorage

func GetStorage() (storage.BackendConnector, error)

GetStorage returns storage.BackendConnector implementation

func GoGet

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

func NewCacheMissesLog

func NewCacheMissesLog() (eventlog.Appender, error)

NewCacheMissesLog returns impl. of eventlog.Appender

Types

type AppConfig

type AppConfig struct {
	Storage        storage.Backend
	EventLog       eventlog.Eventlog
	CacheMissesLog eventlog.Appender
}

AppConfig contains dependencies used in App

Jump to

Keyboard shortcuts

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