mockdb

package
v0.0.0-...-5619aa3 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDB

type MockDB struct {
}

MockDB - Database Object

func (*MockDB) DeleteTicker

func (mdb *MockDB) DeleteTicker(tic string) error

DeleteTicker - Delete Ticker Watcher

func (*MockDB) DeleteWatch

func (mdb *MockDB) DeleteWatch(w string) error

func (*MockDB) GetAllTickers

func (mdb *MockDB) GetAllTickers() ([]*giles.Ticker, error)

GetAllTickers - Mocked Function to Retrieve a list of Ticker Watches

func (*MockDB) GetTicker

func (mdb *MockDB) GetTicker(tic string) (*giles.Ticker, error)

GetTicker - Get Ticker Watcher

func (*MockDB) GetWatch

func (mdb *MockDB) GetWatch() ([]*giles.Watch, error)

func (*MockDB) SaveTicker

func (mdb *MockDB) SaveTicker(tic *giles.Ticker) error

SaveTicker - Mocked Fuction for Saving Ticker Watch

func (*MockDB) UpsertWatch

func (mdb *MockDB) UpsertWatch(w *giles.Watch) error

Jump to

Keyboard shortcuts

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