models

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2020 License: MIT Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address added in v1.1.9

type Address struct {
	ID      uint   `gorm:"primary_key"`
	Address string `gorm:"type:varchar(128); unique_index"`
}

type AddressToAssetAssociation added in v1.1.9

type AddressToAssetAssociation struct {
	CreatedAt time.Time  `sql:"index"`
	DeletedAt *time.Time `sql:"index"`

	Address   Address `gorm:"ForeignKey:AddressID; not null"`
	AddressID uint    `gorm:"primary_key; auto_increment:false" sql:"index"`

	Asset   Asset `gorm:"ForeignKey:AssetID; not null"`
	AssetID uint  `gorm:"primary_key; auto_increment:false" sql:"index"`
}

type Asset added in v1.1.9

type Asset struct {
	ID    uint   `gorm:"primary_key"`
	Asset string `gorm:"type:varchar(128); unique_index"`
}

type AssetSubscription added in v1.1.9

type AssetSubscription struct {
	DeletedAt *time.Time `sql:"index"`
	Address   Address    `gorm:"ForeignKey:AddressID; not null"`
	AddressID uint       `gorm:"primary_key; auto_increment:false"`
}

type NotificationSubscription added in v1.1.9

type NotificationSubscription struct {
	DeletedAt *time.Time `sql:"index"`
	Address   Address    `gorm:"ForeignKey:AddressID; not null"`
	AddressID uint       `gorm:"primary_key; auto_increment:false"`
}

type Tracker

type Tracker struct {
	UpdatedAt time.Time
	Coin      string `gorm:"primary_key:true; type:varchar(64)"`
	Height    int64
}

Jump to

Keyboard shortcuts

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