db

package
v0.0.0-...-f3d7857 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHeights

func GetHeights(db *pg.DB, chainId string) []int

GetHeights Params chainId string -> Chain id to query for Returns heights []int -> All heights for chainId

func InitDB

func InitDB(conn string) *pg.DB

func InsertBlocks

func InsertBlocks(done chan struct{}, db *pg.DB, blocksIn chan types.BlockResultDB, blocksOut chan types.BlockResultDB, wg *sync.WaitGroup)

InsertBlocks receives blocks via blocks channel from HandleWs websocket.

Types

This section is empty.

Jump to

Keyboard shortcuts

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