app

package
v0.0.0-...-39d7215 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2020 License: MIT Imports: 10 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 {
	Router *mux.Router
	DB     *gorm.DB
}

func (*App) Delete

func (a *App) Delete(r *mux.Router, path string, f func(w http.ResponseWriter, r *http.Request))

func (*App) Get

func (a *App) Get(r *mux.Router, path string, f func(w http.ResponseWriter, r *http.Request))

func (*App) Initialize

func (a *App) Initialize(config *config.Config)

func (*App) InitializeDatabase

func (a *App) InitializeDatabase(config *config.Config) error

func (*App) Post

func (a *App) Post(r *mux.Router, path string, f func(w http.ResponseWriter, r *http.Request))

func (*App) Put

func (a *App) Put(r *mux.Router, path string, f func(w http.ResponseWriter, r *http.Request))

func (*App) Run

func (a *App) Run(host string)

type RequestHandlerFunction

type RequestHandlerFunction func(db *gorm.DB, w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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