Documentation ¶
Index ¶
- Constants
- func CreateTables(ctx context.Context, conn *pgxpool.Pool) error
- func Recreate(ctx context.Context, conn *pgxpool.Pool) error
- type Asset
- func (db *Asset) Delete(ctx context.Context, symbol string) error
- func (db *Asset) Get(ctx context.Context, symbol string) (*pb.Asset, error)
- func (db *Asset) List(ctx context.Context) ([]*pb.Asset, error)
- func (db *Asset) ListBySymbols(ctx context.Context, symbols []string) ([]*pb.Asset, error)
- func (db *Asset) Store(ctx context.Context, symbol, name string) error
- type OHLC
Constants ¶
View Source
const AssetTable = `CREATE TABLE IF NOT EXISTS asset (
symbol text primary key,
name text);
`
View Source
const OHLCTable = `` /* 183-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Asset ¶
func (*Asset) ListBySymbols ¶
Click to show internal directories.
Click to hide internal directories.