models

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: May 16, 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 Subscription

type Subscription struct {
	SubscriptionId uint `gorm:"primary_key:true"`
	UpdatedAt      time.Time
	Data           []SubscriptionData `gorm:"foreignkey:SubscriptionId"`
}

type SubscriptionData

type SubscriptionData struct {
	ID             uint   `gorm:"primary_key;"`
	SubscriptionId uint   `gorm:"primary_key; column:subscription_id; auto_increment:false"`
	Coin           uint   `gorm:"primary_key; column:coin; auto_increment:false"`
	Address        string `gorm:"primary_key; column:address; type:varchar(128)"`
}

type Tracker

type Tracker struct {
	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