package
Version:
v1.1.10
Opens a new window with list of versions in this module.
Published: Sep 3, 2020
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 4
Opens a new window with list of known importers.
Documentation
¶
type Address struct {
ID uint `gorm:"primary_key"`
Address string `gorm:"type:varchar(128); unique_index"`
}
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 struct {
ID uint `gorm:"primary_key"`
Asset string `gorm:"type:varchar(128); unique_index"`
}
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 struct {
DeletedAt *time.Time `sql:"index"`
Address Address `gorm:"ForeignKey:AddressID; not null"`
AddressID uint `gorm:"primary_key; auto_increment:false"`
}
type Tracker struct {
UpdatedAt time.Time
Coin string `gorm:"primary_key:true; type:varchar(64)"`
Height int64
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.