Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrMissingFixture is the error returned when getting a nonexisting fixture. ErrMissingFixture = fmt.Errorf("fixture does not exist") )
Functions ¶
Types ¶
type Fixture ¶
type Fixture interface { // Name is the name of the fixture. Name() string // Populate populates the db with the fixture. Populate(context.Context, db.NodeDB) (*node.Root, error) }
Fixture is a protocol server fixture.
func GetFixture ¶
GetFixture returns a registered fixture by name.
Click to show internal directories.
Click to hide internal directories.