Util

package
v0.0.0-...-f612c76 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DATANUM   = 20000000
	PUSHTIME  = 200
	THREADNUM = 10000
	CHANSIZE  = 10000
	PERNUM    = 100000
)

Variables

This section is empty.

Functions

func GetUserDatas

func GetUserDatas(db, table string, offset *int, nums int) ([]*common.UserData, error)

func InsertDataToDB

func InsertDataToDB()

func PushMsg

func PushMsg(data *common.UserData, nowPush *int32)

func TruncateTable

func TruncateTable(db, tab string)

func UserDataToChan

func UserDataToChan(uData []*common.UserData, dataChan chan *common.UserData)

Types

This section is empty.

Jump to

Keyboard shortcuts

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