util

package
v0.13.1-patch.7 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: AGPL-3.0 Imports: 12 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProtocolState

func ProtocolState(t testing.TB, db *badger.DB) *pbadger.State

func RunWithProtocolState

func RunWithProtocolState(t testing.TB, f func(*badger.DB, *pbadger.State))

func RunWithProtocolStateAndConsumer

func RunWithProtocolStateAndConsumer(t testing.TB, consumer protocol.Consumer, f func(*badger.DB, *pbadger.State))

func RunWithProtocolStateDeps

func RunWithProtocolStateDeps(t testing.TB, create createState, f func(*badger.DB, *pbadger.State))

use this function if you'd like to create your own protocol state with customized dependencies

func WithProtocolState

func WithProtocolState(t testing.TB, db *badger.DB, create createState) *pbadger.State

Types

This section is empty.

Jump to

Keyboard shortcuts

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