controller

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	DB *gorm.DB
}

func New

func New(c *gorm.DB) *Controller

func (*Controller) Close

func (c *Controller) Close()

func (*Controller) InsertCandles

func (c *Controller) InsertCandles(candles []*source.Candle) error

func (*Controller) SelectCandles

func (c *Controller) 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