helpers

package
v0.179.12 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MPL-2.0 Imports: 8 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoRunningNode node is not running.
	ErrNoRunningNode = errors.New("there is no running node")
	// ErrEmptyPeerURL provided peer URL is empty
	ErrEmptyPeerURL = errors.New("empty peer url")
)

Functions

func ColumnExists added in v0.163.14

func ColumnExists(db *sql.DB, tableName string, columnName string) (bool, error)

func SetupTestMemorySQLDB added in v0.163.14

func SetupTestMemorySQLDB(dbInit dbsetup.DatabaseInitializer) (*sql.DB, error)

func SetupTestSQLDB added in v0.163.14

func SetupTestSQLDB(dbInit dbsetup.DatabaseInitializer, prefix string) (*sql.DB, func() error, error)

SetupTestSQLDB creates a temporary sqlite database file, initialises and then returns with a teardown func

func WaitForPeerAsync

func WaitForPeerAsync(p *p2p.Server, u string, e p2p.PeerEventType, t time.Duration) <-chan error

WaitForPeerAsync waits for a peer to be added asynchronously

Types

This section is empty.

Jump to

Keyboard shortcuts

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