symbols

package
v0.0.0-...-5f382f4 Latest Latest
Warning

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

Go to latest
Published: May 22, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DAO

type DAO interface {
	// WithTx returns new DAO with injected tx
	WithTx(tx *postgres.DBQuery) DAO

	// Get returns list of symbols with pagination
	Get(limit, offset int) (symbols []models.Symbol, err error)

	// GetByName returns symbol by name if any
	GetByName(name string) (symbol models.Symbol, err error)

	Insert(symbol models.Symbol) (_ models.Symbol, err error)
	BulkInsert(symbols []models.Symbol) (err error)

	Upsert(symbol models.Symbol) (_ models.Symbol, err error)
	BulkUpsert(symbols []models.Symbol) (err error)
}

func NewSymbolsDAO

func NewSymbolsDAO() DAO

Jump to

Keyboard shortcuts

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