app

package
v0.0.0-...-c7eeaf8 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2017 License: MIT Imports: 8 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) CreatePost

func (a *App) CreatePost(w http.ResponseWriter, r *http.Request)

func (*App) Delete

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

func (*App) DeletePost

func (a *App) DeletePost(w http.ResponseWriter, r *http.Request)

func (*App) Get

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

func (*App) GetAllPosts

func (a *App) GetAllPosts(w http.ResponseWriter, r *http.Request)

func (*App) GetPost

func (a *App) GetPost(w http.ResponseWriter, r *http.Request)

func (*App) GetVersion

func (a *App) GetVersion(w http.ResponseWriter, r *http.Request)

func (*App) Initialize

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

func (*App) Post

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

func (*App) Run

func (a *App) Run(host string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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