db

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*mongo.Client
}

Client - Database Object

func SetupDB

func SetupDB(config string) (*Client, error)

SetupDB - Connect to Database and return connection

func (*Client) DeleteTicker

func (client *Client) DeleteTicker(tic string) error

DeleteTicker - Delete Stock Ticker Symbol

func (*Client) DeleteWatch

func (client *Client) DeleteWatch(sym string) error

func (*Client) GetAllTickers

func (client *Client) GetAllTickers() ([]*giles.Ticker, error)

GetAllTickers - Get All Stock Ticker Symbols

func (*Client) GetTicker

func (client *Client) GetTicker(tic string) (*giles.Ticker, error)

GetTicker - Get Stock Ticker Symbol

func (*Client) GetWatch

func (client *Client) GetWatch() ([]*giles.Watch, error)

func (*Client) SaveTicker

func (client *Client) SaveTicker(tic *giles.Ticker) error

SaveTicker - Save Stock Ticker Symbol

func (*Client) UpsertWatch

func (client *Client) UpsertWatch(w *giles.Watch) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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