Documentation
¶
Index ¶
- Constants
- type Db
- func (d *Db) AddSymbol(s, u string) (sql.Result, error)
- func (d *Db) AddTask(ctx context.Context, n string, i int64) (sql.Result, error)
- func (d *Db) Close() error
- func (d *Db) DataPipe() chan *domain.Data
- func (d *Db) GetLast(from string, to string) (*domain.Data, error)
- func (d *Db) GetSession(ctx context.Context) (map[string]int64, error)
- func (d *Db) Insert(data *domain.Data) (sql.Result, error)
- func (d *Db) RemoveSymbol(s string) (sql.Result, error)
- func (d *Db) RemoveTask(ctx context.Context, n string) (sql.Result, error)
- func (d *Db) Symbols() ([]*domain.Symbol, error)
- func (d *Db) UpdateSymbol(s, u string) (sql.Result, error)
- func (d *Db) UpdateTask(ctx context.Context, n string, i int64) (sql.Result, error)
Constants ¶
View Source
const Postgres = "postgres"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.