controllers

package
v0.0.0-...-a953cbe Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

func New

func New(session *mgo.Session) *Controller

func (*Controller) DB

func (c *Controller) DB(name string) *mgo.Database

func (*Controller) GetPhones

func (c *Controller) GetPhones(ctx *iris.Context)

func (*Controller) GetUserTransactions

func (c *Controller) GetUserTransactions(ctx *iris.Context)

func (*Controller) InsertTransaction

func (c *Controller) InsertTransaction(transaction *models.Transaction) error

func (*Controller) InsertUser

func (c *Controller) InsertUser(user *models.User) error

func (*Controller) InsertUserTransaction

func (c *Controller) InsertUserTransaction(context *gin.Context)

func (*Controller) Transactions

func (c *Controller) Transactions() *mgo.Collection

func (*Controller) Users

func (c *Controller) Users() *mgo.Collection

Jump to

Keyboard shortcuts

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