peertest

package
v0.0.0-...-5dd4785 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: Apache-2.0, BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package peertest provides utilities for writing tests with the peer package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLocal

func NewLocal(network string, ip net.IP, port int, db *peer.DB) *peer.Local

NewLocal crates a new local for tests.

func NewPeer

func NewPeer(network string, ip string, port int) *peer.Peer

NewPeer creates a new peer for tests.

Types

This section is empty.

Jump to

Keyboard shortcuts

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