handler

package
v0.0.0-...-9793867 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2018 License: MIT Imports: 8 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 {
	DB types.Datastorable
}

Controller ...

func NewController

func NewController(db types.Datastorable) *Controller

NewController ...

func (*Controller) ExecPayment

func (ctr *Controller) ExecPayment() func(ctx iris.Context)

ExecPayment ... There is several ways to create a payment, see https://stackoverflow.com/questions/34415987/stripe-payment-getting-error-as-customer-cus-does-not-have-a-linked-card for more details about token vs Source. And my logic came from this article. https://qiita.com/y_toku/items/7e51ef7e69d7cbbfb3ca

type MockDB

type MockDB struct {
	User *types.User
	Err  bool
}

MockDB ...

func (*MockDB) First

func (mdb *MockDB) First(i interface{}) error

First ...

func (*MockDB) Model

func (mdb *MockDB) Model(i interface{}) types.Datastorable

Model ...

func (*MockDB) Update

func (mdb *MockDB) Update(query, arg interface{}) error

Update ...

func (*MockDB) Where

func (mdb *MockDB) Where(query, arg interface{}) types.Datastorable

Where ...

Jump to

Keyboard shortcuts

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