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 ¶
CreateTrain handles POST on train resource
func (App) RemoveTrain ¶
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
Click to show internal directories.
Click to hide internal directories.