actions

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2018 License: GPL-3.0 Imports: 14 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.

Types

type InstancesResource

type InstancesResource struct {
	buffalo.Resource
}

InstancesResource manages instances of load generators.

func (InstancesResource) Create

func (v InstancesResource) Create(c buffalo.Context) error

Create runs new generator instance. This function is mapped to the path POST /instances

func (InstancesResource) Destroy

func (v InstancesResource) Destroy(c buffalo.Context) error

Destroy stops given instance and removes it from the instances list. This function is mapped to the path DELETE /instances/{instance_id}

func (InstancesResource) List

List returns all running instances This function is mapped to the path GET /instances

func (InstancesResource) Show

Show shows the detail of given instance. This function is mapped to the path GET /instances/{instance_id}

Jump to

Keyboard shortcuts

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