routes

package
v0.0.0-...-f581a9d Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PilotRoutes

type PilotRoutes struct{}

PilotRoutes :

func (PilotRoutes) Create

func (route PilotRoutes) Create(c *gin.Context)

Create : Create pilot with the passed name string TODO : Add validation to json req

func (PilotRoutes) Delete

func (route PilotRoutes) Delete(c *gin.Context)

Delete : Attempts to delete the pilot matching the passed id

func (PilotRoutes) Get

func (route PilotRoutes) Get(c *gin.Context)

Get : Attempts to fetch a single pilot matching passed ID

func (PilotRoutes) GetAll

func (route PilotRoutes) GetAll(c *gin.Context)

GetAll : Get all pilots

func (PilotRoutes) Update

func (route PilotRoutes) Update(c *gin.Context)

Update : Attempts to update the pilot matching the passed id

Jump to

Keyboard shortcuts

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