api

package
v0.0.0-...-2373566 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: MIT Imports: 6 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 {
	DB *sql.DB
}

Main api application that contains database struct

func (*App) CreateOrder

func (a *App) CreateOrder(c *gin.Context)

Create a new order

func (*App) DeleteOrder

func (a *App) DeleteOrder(c *gin.Context)

Delete an order by ID

func (*App) GetOrders

func (a *App) GetOrders(c *gin.Context)

Get all orders

func (*App) ShowOrder

func (a *App) ShowOrder(c *gin.Context)

Show an order by ID

func (*App) UpdateOrder

func (a *App) UpdateOrder(c *gin.Context)

Update an order by ID

Jump to

Keyboard shortcuts

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