types

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: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// VERSION is a version of payment API
	VERSION = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	Client *gorm.DB
}

DB ...

func (*DB) First

func (db *DB) First(s interface{}) error

First ...

func (*DB) Model

func (db *DB) Model(s interface{}) Datastorable

Model ...

func (*DB) Update

func (db *DB) Update(query, arg interface{}) error

Update ...

func (*DB) Where

func (db *DB) Where(query, arg interface{}) Datastorable

Where ...

type Datastorable

type Datastorable interface {
	Where(query, arg interface{}) Datastorable
	First(s interface{}) error
	Model(s interface{}) Datastorable
	Update(query, arg interface{}) error
}

Datastorable ...

type Group

type Group struct {
	gorm.Model
	Table     Table `gorm:"foreignkey:TableKey"`
	TableKey  string
	Key       string
	State     string
	EnteredAt *time.Time
}

type Store

type Store struct {
	gorm.Model
	Name string
}

type Table

type Table struct {
	gorm.Model
	Store    Store `gorm:"foreignkey:StoreId"`
	StoreID  int
	TableKey string
}

type Transaction

type Transaction struct {
	gorm.Model
	User *User
}

Transaction ...

type User

type User struct {
	gorm.Model
	Name             string
	StripeCustomerID string
}

User ...

Jump to

Keyboard shortcuts

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