Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompressedStream ¶
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
Click to show internal directories.
Click to hide internal directories.