ma

package
v0.0.0-...-3851a7b Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Day  = "day"
	Week = "week"
)
View Source
const (
	FieldCode            = "code"
	FieldM5              = "m5"
	FieldM10             = "m10"
	FieldM20             = "m20"
	FieldM30             = "m30"
	FieldDate            = "`date`"
	FieldNumOfYear       = "num_of_year"
	FieldCreateTimestamp = "create_timestamp"
	FieldModifyTimestamp = "modify_timestamp"
)

Variables

This section is empty.

Functions

func DeleteMany

func DeleteMany(exec mysql.Exec, model string, date string, codes []string, timeout time.Duration) (int64, error)

func InsertMany

func InsertMany(exec mysql.Exec, model string, data []*Model, timeout time.Duration) (int64, error)

Types

type Model

type Model struct {
	ID              int64        `json:"id"`
	Code            string       `json:"code"`
	M5              float64      `json:"m5"`
	M10             float64      `json:"m10"`
	M20             float64      `json:"m20"`
	M30             float64      `json:"m30"`
	Date            time.Time    `json:"date"`
	NumOfYear       int          `json:"num_of_year"`
	CreateTimestamp time.Time    `json:"create_timestamp"`
	ModifyTimestamp sql.NullTime `json:"modify_timestamp"`
}

func (*Model) String

func (m *Model) String() string

Jump to

Keyboard shortcuts

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