actions

package
v0.0.0-...-482fd9e Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2019 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ENV = envy.Get("GO_ENV", "development")

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

Functions

func AboutHandler

func AboutHandler(c buffalo.Context) error

AboutHandler is a default handler to serve up memory of 18.20.

func App

func App() *buffalo.App

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

func LintHandler

func LintHandler(c buffalo.Context) error

LintHandler lints your given code

Types

type CodecsResource

type CodecsResource struct {
	buffalo.Resource
}

CodecsResource manages existing codecs

func (CodecsResource) Create

func (CodecsResource) Create(c buffalo.Context) error

Create creates new codec and stores it code. This function is mapped to the path POST /codecs

func (CodecsResource) Decode

func (CodecsResource) Decode(c buffalo.Context) error

Decode decodes given byte strem to object. This function is mapped to the path POST /codecs/{codec_id}/decode

func (CodecsResource) Destroy

func (CodecsResource) Destroy(c buffalo.Context) error

Destroy removes uploaded codec. This function is mapped to the path DELETE /codecs/{codec_id}

func (CodecsResource) Encode

func (CodecsResource) Encode(c buffalo.Context) error

Encode encodes given object to byte stream. This function is mapped to the path POST /codecs/{codec_id}/encode

func (CodecsResource) List

List lists available codecs. This function is mapped to the path GET /codecs

func (CodecsResource) Show

Show shows uploaded codec code. This function is mapped to the path GET /codecs/{codec_id}

type ScenariosResource

type ScenariosResource struct {
	buffalo.Resource
}

ScenariosResource manages existing scenarios

func (ScenariosResource) Activate

func (ScenariosResource) Activate(c buffalo.Context) error

Activate activates (run) scenario. This function is mapped to the path GET /scenarios/{scenario_id}/activate

func (ScenariosResource) Create

Create creates new scenario and stores it code. This function is mapped to the path POST /scenarios

func (ScenariosResource) Deactivate

func (ScenariosResource) Deactivate(c buffalo.Context) error

Deactivate deactivates scenario. This function is mapped to the path GET /scenarios/deactivate

func (ScenariosResource) List

List lists available scenarios. This function is mapped to the path GET /scenarios

func (ScenariosResource) Main

Main returns main (activated) scenario. This function is mapped to the path GET /scenarios/main

func (ScenariosResource) Show

Show shows uploaded scenario code. This function is mapped to the path GET /scenarios/{scenario_id}

Jump to

Keyboard shortcuts

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