testing

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: Apache-2.0, MIT, Apache-2.0, + 1 more Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SpawnHead added in v0.2.0

func SpawnHead(ctx context.Context, options ...opts.Option) (*head.Head, error)

SpawnHead creates a new Hydra head with an in memory datastore and 0 bootstrap peers by default. It also waits for bootstrapping to complete.

func SpawnHeads added in v0.2.0

func SpawnHeads(ctx context.Context, n int, options ...opts.Option) ([]*head.Head, error)

SpawnHeads creates n new Hydra nodes with an in memory datastore and 0 bootstrap peers by default

Types

type ChanWriter

type ChanWriter struct {
	C chan []byte
}

ChanWriter is a writer that writes to a channel

func NewChanWriter

func NewChanWriter() *ChanWriter

NewChanWriter creates a new channel writer

func (*ChanWriter) Write

func (w *ChanWriter) Write(p []byte) (int, error)

Write writes to the channel

Jump to

Keyboard shortcuts

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