boll

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"
	FieldUP              = "up"
	FieldMB              = "mb"
	FieldDN              = "dn"
	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"`
	UP              float64      `json:"up"`
	MB              float64      `json:"mb"`
	DN              float64      `json:"dn"`
	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