app

package
v0.0.0-...-76817a0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2015 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Creator

func Creator(c *gin.Context)

func Destroyer

func Destroyer(c *gin.Context)

func Getter

func Getter(c *gin.Context)

func ListGetter

func ListGetter(c *gin.Context)

func Updater

func Updater(c *gin.Context)

Types

type App

type App struct {
	Engine EngineIface
}

func (*App) RunOn

func (app *App) RunOn(port string)

func (*App) SetRoutes

func (app *App) SetRoutes()

type EngineIface

type EngineIface interface {
	Run(string) error
	GET(relativePath string, handlers ...gin.HandlerFunc)
	PUT(relativePath string, handlers ...gin.HandlerFunc)
	POST(relativePath string, handlers ...gin.HandlerFunc)
	DELETE(relativePath string, handlers ...gin.HandlerFunc)
}

type ResourceIface

type ResourceIface interface {
	Form() interface{}
	Save() bool
	Url() string
}

Jump to

Keyboard shortcuts

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