Documentation ¶
Index ¶
- type Controller
- func (c *Controller) DB(name string) *mgo.Database
- func (c *Controller) GetPhones(ctx *iris.Context)
- func (c *Controller) GetUserTransactions(ctx *iris.Context)
- func (c *Controller) InsertTransaction(transaction *models.Transaction) error
- func (c *Controller) InsertUser(user *models.User) error
- func (c *Controller) InsertUserTransaction(context *gin.Context)
- func (c *Controller) Transactions() *mgo.Collection
- func (c *Controller) Users() *mgo.Collection
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) 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
Click to show internal directories.
Click to hide internal directories.