app

package
v0.0.0-...-a509fbf Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package app is reponsible for executing the application's actions. It dosen't know anything about http, but it knows about the database.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Database *gorm.DB
}

func NewApp

func NewApp(database *gorm.DB) *App

func (*App) CreateFloorplan

func (app *App) CreateFloorplan(name string) (*models.Floorplan, error)

func (*App) CreateSeat

func (app *App) CreateSeat(floorplanID uint, label string, x, y int) (*models.Seat, error)

func (*App) GetAllFloorplansNameId

func (app *App) GetAllFloorplansNameId() ([]models.Floorplan, error)

func (*App) GetFloorplan

func (app *App) GetFloorplan(id int) (*models.Floorplan, error)

func (*App) GetSeat

func (app *App) GetSeat(id int) (*models.Seat, error)

func (*App) LoadFloorplanSeats

func (app *App) LoadFloorplanSeats(floorplan *models.Floorplan) error

Jump to

Keyboard shortcuts

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