mware

package
v0.0.0-...-eaf77a1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2014 License: MIT Imports: 15 Imported by: 3

Documentation

Index

Constants

View Source
const (
	KeyFields = "q-fields"
)

Variables

This section is empty.

Functions

func Auth

func ChangePasswordHandler

func ChangePasswordHandler() httperr.Handler

func CommunityHandler

func CommunityHandler() httperr.Handler

func ConstantHandler

func ConstantHandler(src interface{}) httperr.Handler

func Create

func Create(m CrudResource) httperr.Handler

func DeleteByID

func DeleteByID(m CrudResource) httperr.Handler

func GetAll

func GetAll(m CrudResource) httperr.Handler

func GetByID

func GetByID(m CrudResource) httperr.Handler

func GetID

func GetID(dbmap *gorp.DbMap, m CrudResource, id interface{}) error

func InviteHandler

func InviteHandler() httperr.Handler

func LoginHandler

func LoginHandler() httperr.Handler

func LogoutHandler

func LogoutHandler() httperr.Handler

func ResetPasswordHandler

func ResetPasswordHandler() httperr.Handler

func ServeFile

func ServeFile(name string) httperr.Handler

func SetGetDBConnectionFunc

func SetGetDBConnectionFunc(f GetDBConnectionFunc)

func SignupHandler

func SignupHandler() httperr.Handler

func TopStoriesHandler

func TopStoriesHandler() httperr.Handler

func UpdateByID

func UpdateByID(m CrudResource) httperr.Handler

Types

type CrudResource

type CrudResource interface {
	TableName() string
	TableId() int64
	Delete()
}

type GetDBConnectionFunc

type GetDBConnectionFunc func() (*gorp.DbMap, error)

Jump to

Keyboard shortcuts

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