tcp

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2019 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_PAYLOADS_IN_MESSAGE = 100000
View Source
const MAX_PAYLOAD_SIZE_BYTES = 20 * 1024 * 1024
View Source
const NETWORK_SIZE = 3
View Source
const SEND_QUEUE_MAX_BYTES = 20 * 1024 * 1024
View Source
const SEND_QUEUE_MAX_MESSAGES = 1000

Variables

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

Functions

func NewDirectTransport

func NewDirectTransport(ctx context.Context, config config.GossipTransportConfig, logger log.BasicLogger, registry metric.Registry) *directTransport

func NewTransportQueue

func NewTransportQueue(maxSizeBytes int, maxSizeMessages int, metricFactory metric.Factory) *transportQueue

Types

This section is empty.

Jump to

Keyboard shortcuts

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