iochan

package
v0.11.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

allows for streaming an io.Reader to a channel and an io.Writer from a channel

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReaderChan

func ReaderChan(ctx context.Context, r io.Reader, chunkSize int64, callback func()) chan wshrpc.RespOrErrorUnion[[]byte]

ReaderChan reads from an io.Reader and sends the data to a channel

func WriterChan

func WriterChan(ctx context.Context, w io.Writer, ch <-chan wshrpc.RespOrErrorUnion[[]byte], callback func(), errCallback func(error))

WriterChan reads from a channel and writes the data to an io.Writer

Types

This section is empty.

Jump to

Keyboard shortcuts

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