controllers

package
v0.0.0-...-476be57 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	*revel.Controller
}

func (App) CreateTrain

func (c App) CreateTrain() revel.Result

CreateTrain handles POST on train resource

func (App) GetTrain

func (c App) GetTrain() revel.Result

GetTrain handles GET on train resource

func (App) RemoveTrain

func (c App) RemoveTrain() revel.Result

RemoveTrain implements DELETE on train resource

type TrainResource

type TrainResource struct {
	ID              int    `json:"id"`
	DriverName      string `json:"driver_name"`
	OperatingStatus bool   `json:"operating_status"`
}

TrainResource is the model for holding rail information

Jump to

Keyboard shortcuts

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