internal

package
v0.37.13 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompressedStream

type CompressedStream struct {
	network.Stream
	// contains filtered or unexported fields
}

CompressedStream is an internal networking layer data structure, which implements a compression mechanism as a wrapper around a native libp2p stream.

func NewCompressedStream

func NewCompressedStream(s network.Stream, compressor flownet.Compressor) (*CompressedStream, error)

NewCompressedStream creates a compressed stream with gzip as default compressor.

func (*CompressedStream) Close

func (c *CompressedStream) Close() error

func (*CompressedStream) Read

func (c *CompressedStream) Read(b []byte) (int, error)

func (*CompressedStream) Write

func (c *CompressedStream) Write(b []byte) (int, error)

Jump to

Keyboard shortcuts

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