collect

package
v0.0.0-...-d2b7790 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BaseCode = []string{
		"sh688***",
		"sh605***",
		"sh603***",
		"sh601***",
		"sh600***",
		"sz300***",
		"sz0030**",
		"sz002***",
		"sz001***",
		"sz000***",
	}
	FetchFactories = map[string]func([]string) ([]*model.Metadata, error){
		"sina":   repo.FetchMetadataFromSina,
		"net126": repo.FetchMetadataFromNet126,
	}
	Size       = 30
	Limit      = 3
	Timeout    = 10 * time.Second
	RandomWait = [2]int{10, 30}
)

Functions

func SyncDataQuick

func SyncDataQuick(source string) (int64, int64, error)

func SyncDataSlow

func SyncDataSlow(source string) (int64, int64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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