models

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Algo

type Algo struct {
	Id             int    `db:"algo_id"`
	Strategy       string `db:"algo_strategy"`
	NumberId       int    `db:"number_id"`
	IncrementValue int    `db:"increment_value"`
	Dict           string `db:"dict"`
}

type Key

type Key struct {
	Id     int    `db:"key_id"`
	Value  string `db:"key_value"`
	AlgoId int    `db:"algo_id"`
}
type Link struct {
	Id        string    `db:"link_id"`
	Link      string    `db:"link_value"`
	Key       string    `db:"key_value"`
	CreatedAt time.Time `db:"created_at"`
	VisitedAt time.Time `db:"visited_at"`
	Visited   bool      `db:"visited"`
	ExpiredAt time.Time `db:"expired_at"`
}

type Number

type Number struct {
	Id    int `db:"number_id"`
	Value int `db:"number_value"`
}

Jump to

Keyboard shortcuts

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