models

package
v0.0.0-...-72a5172 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2018 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Currency

type Currency struct {
	ID string
}

type Order

type Order struct {
	ID        uuid.UUID `gorm:"primary_key"`
	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt *time.Time `sql:"index"`
	PairID    string
	PeerID    string
	Quantity  string
	Price     string
}

func (*Order) AddOrder

func (o *Order) AddOrder(db *gorm.DB, order Order) (string, error)

func (*Order) GetOrders

func (o *Order) GetOrders(db *gorm.DB) []Order

type Pair

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

type Peer

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

Jump to

Keyboard shortcuts

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