common

package
v0.0.0-...-2ac35d6 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Band band.Band

Band is the ISM band configuration to use

View Source
var ErrEmptyQueue = errors.New("the queue is empty or does not exist")

ErrEmptyQueue defines the error returned when the queue is empty. Note that depending the context, this error might not be a real error.

View Source
var NodeSessionTTL = time.Hour * 24 * 5

NodeSessionTTL defines the TTL of a node session (will be renewed on each activity)

View Source
var NodeTXPayloadQueueTTL = time.Hour * 24 * 5

NodeTXPayloadQueueTTL defines the TTL of the node TXPayload queue

Functions

func MustFlushRedis

func MustFlushRedis(p *redis.Pool)

MustFlushRedis flushes the Redis storage.

func MustResetDB

func MustResetDB(db *sqlx.DB)

MustResetDB re-applies all database migrations.

Types

type TestConfig

type TestConfig struct {
	RedisURL    string
	PostgresDSN string
}

TestConfig contains the test configuration.

func GetTestConfig

func GetTestConfig() *TestConfig

GetTestConfig returns the test configuration.

Jump to

Keyboard shortcuts

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