io

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: Apache-2.0, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxDataLength = 40960
)

Variables

This section is empty.

Functions

func Read

func Read(ctx context.Context, conn network.Stream) ([]byte, error)

Read reads bytes from given stream.

@input - context, network stream.

@output - data, error.

func Write

func Write(ctx context.Context, conn network.Stream, data []byte) error

Write writes bytes to given stream.

@input - context, network stream, data.

@output - error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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