mock

package
v0.0.0-...-4d778f5 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mock

type Mock struct {
	// contains filtered or unexported fields
}

Mock is a mock creator.

func New

func New(
	create func(ctx context.Context) (*peers.Peer, *url.URL, error),
) *Mock

New is a mock creator constructor.

func (*Mock) Create

func (m *Mock) Create(ctx context.Context) (*peers.Peer, *url.URL, error)

Create implements Creator.

Jump to

Keyboard shortcuts

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