common

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxBlockMessageSize  = 12 * 1024 * 1024 // 12 MBytes
	MaxNormalMessageSize = 1024 * 1024      // 1 MBytes
	MaxChunkSize         = 16 * 1024        // 16 kbytes, lowest common denominator among browsers
	//MaxChunkSize = 64 * 1024
	MaxSendRate = int64(128 * 1024 * 1024) // 128 Mbps
	MaxRecvRate = int64(128 * 1024 * 1024) // 128 Mbps
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorHandler

type ErrorHandler func(interface{})

type ReadWriteCloser

type ReadWriteCloser interface {
	io.Reader
	io.Writer
	io.Closer
}

Jump to

Keyboard shortcuts

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