writer

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_DB_WRITE_BATCH          = 200
	DEFAULT_DB_WRITE_BATCH_INTERVAL = 200 //默认200ms
)

Variables

View Source
var (
	DBWriteBatch         int
	DBWriteBatchInterval int
)
View Source
var DB *sql.DB

Functions

func Close

func Close()

func FlushToDB

func FlushToDB(key int64, items []*g.TrendResult)

func Start

func Start()

Types

This section is empty.

Jump to

Keyboard shortcuts

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