Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Testbed ¶
type Testbed struct { // Context is the root context. Context context.Context // Logger is the logger Logger *logrus.Entry // StaticResolver is the static resolver. StaticResolver *srr.Resolver // Bus is the controller bus Bus bus.Bus // PrivKey is the private key. PrivKey crypto.PrivKey // Release releases the testbed. Release func() }
Testbed is a constructed testbed.
func NewTestbed ¶
NewTestbed constructs a new core bus with a attached kvtx in-memory volume, logger, and other core controllers required for a test to function.
type TestbedOpts ¶
type TestbedOpts struct { // PrivKey overrides the private key. PrivKey crypto.PrivKey // NoPeer disables generating + starting the peer and filling PrivKey. NoPeer bool // NoEcho disables starting the echo listener. NoEcho bool }
TestbedOpts are extra options to construct the testbed.
Click to show internal directories.
Click to hide internal directories.