schema

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FieldsRegistrar

type FieldsRegistrar map[RateSchemaFieldName]int

FieldsRegistrar store a map of RateSchemaFieldName to its index in the result from influx db

func NewFieldsRegistrar

func NewFieldsRegistrar(colums []string) (FieldsRegistrar, error)

NewFieldsRegistrar returns a FieldsRegistrar from a list of collumn name and error if occurs

type RateSchemaFieldName

type RateSchemaFieldName int

RateSchemaFieldName define a list of field names for a rate record in influxDB

const (
	//Time is enumerated field name for reserveRate.time
	Time RateSchemaFieldName = iota //time
	//Pair is enumerated field name for reserveRate.Pair
	Pair //pair
	//BuyRate is enumerated field name for reserveRate.BuyRate
	BuyRate //buy_rate
	//SellRate is enumerated field name for reserveRate.SellRate
	SellRate //sell_rate
	//BuySanityRate is enumerated field name for reserveRate.BuySanityRate
	BuySanityRate //buy_sanity_rate
	//SellSanityRate is enumerated field name for reserveRate.SellSanityRate
	SellSanityRate //sell_sanity_rate
	//FromBlock is enumerated field name for from block.
	FromBlock //from_block
	//ToBlock is enumerated field name for to block.
	ToBlock //to_block
	//Reserve is enumerated field name for reserveRate.Reserve
	Reserve //reserve
)

func (RateSchemaFieldName) String

func (i RateSchemaFieldName) String() string

Jump to

Keyboard shortcuts

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