sqlitecache

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2014 License: AGPL-3.0 Imports: 11 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	VERBOSITY = 0
)

Functions

func Yesterday

func Yesterday() time.Time

Types

type SqliteCache

type SqliteCache struct {
	fquery.Source
	// contains filtered or unexported fields
}

func New

func New(path string, src fquery.Source) (*SqliteCache, error)

func (*SqliteCache) Close

func (c *SqliteCache) Close() error

func (*SqliteCache) HasHist

func (c *SqliteCache) HasHist(symbol string, start *time.Time, end *time.Time) bool

func (*SqliteCache) HasQuote

func (c *SqliteCache) HasQuote(symbol string) bool

func (*SqliteCache) Hist

func (c *SqliteCache) Hist(symbols []string) (map[string]fquery.Hist, error)

I consider this to be an extremely dirty function, it should be split up * and possibly (hopefully) simplified

func (*SqliteCache) Quote

func (c *SqliteCache) Quote(symbols []string) ([]fquery.Quote, error)

TODO: escape your strings, symbols could be user input

func (*SqliteCache) SetQuoteExpiry

func (c *SqliteCache) SetQuoteExpiry(dur time.Duration)

func (*SqliteCache) String

func (c *SqliteCache) String() string

Jump to

Keyboard shortcuts

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