crawl

package
v0.0.0-...-eef5595 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2018 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TimeLocLondon     *time.Location //用于伦敦夏令时
	GrpcErrCount      *uint64        //grpc出错数
	SymbolUpdateCount *uint64        // 交易对更新次数

	ChanPageReload = make(chan bool, 1000) //用于统计 完成采集有效次数(每页)
	Re             *regexp.Regexp          //匹配mql5
	Conf           Config
)
View Source
var SyncMap *sync.Map //缓存最新 mql5结构的数据

Functions

func GrpcClientSend

func GrpcClientSend(arrMql5 []*Mql5)

func SpInit

func SpInit()

func WriteUDP

func WriteUDP(m *Mql5, tt *time.Time)

Types

type Config

type Config struct {
	Config struct {
		Datahost      string        `yaml:"datahost"`
		GrpgServerArr []string      `yaml:"grpgServerArr"`
		Database      string        `yaml:"database"`
		PageRefresh   time.Duration `yaml:"pageRefresh"`
	}
}

type Mql5

type Mql5 struct {
	Type     string
	Symbol   string
	Title    string
	Bid      float64
	Ask      float64
	UnixNano int64
	TimeStr  string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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