controllers

package
v0.0.0-...-e6cabe9 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credentials

type Credentials struct {
	Name     string `form:"name" json:"name" binding:"required"`
	Password string `form:"password" json:"password" binding:"required"`
}

type Responder

type Responder struct {
	// contains filtered or unexported fields
}

func NewResponder

func NewResponder(c *gin.Context) *Responder

func (*Responder) Created

func (j *Responder) Created(message string, payload gin.H)

func (*Responder) Error

func (j *Responder) Error(status int, message, details string)

func (*Responder) Okay

func (j *Responder) Okay(message string, payload gin.H)

type Users

type Users struct {
	AppDb models.AppDb
}

func (*Users) NewUser

func (ctrl *Users) NewUser(c *gin.Context)

Jump to

Keyboard shortcuts

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