memory

package
v1.3.17 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package memory provides an in-memory implementation of the Gossip Transport adapter, meant for usage in fast tests that should not use the TCP-based adapter, such as acceptance tests or sociable unit tests, or in other in-process network use cases

Index

Constants

View Source
const LISTENER_HANDLE_TIMEOUT = 7 * time.Second
View Source
const SEND_QUEUE_MAX_MESSAGES = 1000

Variables

View Source
var LogTag = log.String("adapter", "gossip")

Functions

func NewTransport

func NewTransport(ctx context.Context, logger log.Logger, nodes []primitives.NodeAddress) *memoryTransport

Types

This section is empty.

Jump to

Keyboard shortcuts

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