Documentation ¶
Index ¶
- Constants
- func DateToTimestamp(period Period, v uint32) uint64
- func DayDateToTimestamp(v uint32) uint64
- func MinuteDateToTimestamp(v uint32) uint64
- func NewDataSource(dsDir string, needBuildCache bool) DataSource
- func NewMarshaller(period period.Period) datasource.RecordMarshaller
- func SecurityToString(security *entity.Security) string
- func TDXRecordFromBytes(p period.Period, data []byte, r *TDXRecord) error
- func TimestampToDate(period Period, ts uint64) uint32
- func TimestampToDayDate(ts uint64) uint32
- func TimestampToMinuteDate(ts uint64) uint32
- type TDXRecord
Constants ¶
View Source
const DAY = 24 * 60 * MINUTE
View Source
const MINUTE = 60 * 1000
View Source
const MINUTE_1130 = (11*60 + 30) * MINUTE
View Source
const MINUTE_1300 = 13 * 60 * MINUTE
View Source
const TDX_RECORD_SIZE = int(unsafe.Sizeof(TDXRecord{}))
Variables ¶
This section is empty.
Functions ¶
func DateToTimestamp ¶
func DayDateToTimestamp ¶
func MinuteDateToTimestamp ¶
func NewDataSource ¶
func NewMarshaller ¶
func NewMarshaller(period period.Period) datasource.RecordMarshaller
func SecurityToString ¶
func TimestampToDate ¶
func TimestampToDayDate ¶
func TimestampToMinuteDate ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.