Cache

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package Cache comment This file war generated by tars2go 1.1 Generated from cache.tars

Index

Constants

This section is empty.

Variables

View Source
var File_stock_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type DayKLine

type DayKLine struct {
	Date   string  `json:"date" csv:"date" array:"0"`
	Open   float64 `json:"open" csv:"open" array:"1"`
	High   float64 `json:"high" csv:"high" array:"2"`
	Low    float64 `json:"low" csv:"low" array:"3"`
	Close  float64 `json:"close" csv:"close" array:"4"`
	Volume int64   `json:"volume" csv:"volume" array:"5"`
}

DayKLine struct implement

func (*DayKLine) Init

func (st *DayKLine) Init(_writer *csv.Writer) error

初始化

func (*DayKLine) ReadCsvRow

func (st *DayKLine) ReadCsvRow(record []string) error

读取

func (*DayKLine) ReadFromCsv

func (st *DayKLine) ReadFromCsv(reader *csv.Reader) ([]DayKLine, error)

func (*DayKLine) ReadMapFromCsv

func (st *DayKLine) ReadMapFromCsv(reader *csv.Reader) (*treemap.Map, error)

func (*DayKLine) WriteCSV

func (st *DayKLine) WriteCSV(_writer *csv.Writer) error

写入

type StockInfo

type StockInfo struct {
	Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` // 股票代码
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 股票名称
	// contains filtered or unexported fields
}

func (*StockInfo) Descriptor deprecated

func (*StockInfo) Descriptor() ([]byte, []int)

Deprecated: Use StockInfo.ProtoReflect.Descriptor instead.

func (*StockInfo) GetCode

func (x *StockInfo) GetCode() string

func (*StockInfo) GetName

func (x *StockInfo) GetName() string

func (*StockInfo) ProtoMessage

func (*StockInfo) ProtoMessage()

func (*StockInfo) ProtoReflect

func (x *StockInfo) ProtoReflect() protoreflect.Message

func (*StockInfo) Reset

func (x *StockInfo) Reset()

func (*StockInfo) String

func (x *StockInfo) String() string

Jump to

Keyboard shortcuts

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