memory

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New added in v0.0.9

func New() common.Database

Types

type MemoryDatabase

type MemoryDatabase struct {
	// contains filtered or unexported fields
}

func (*MemoryDatabase) Close

func (memDB *MemoryDatabase) Close()

func (*MemoryDatabase) InsertCandles

func (memDB *MemoryDatabase) InsertCandles(candles []*source.Candle) error

func (*MemoryDatabase) SelectCandles

func (memDB *MemoryDatabase) SelectCandles(symbol string, resolution source.Resolution, from, to time.Time) ([]*source.Candle, error)

Jump to

Keyboard shortcuts

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