iochan

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: May 5, 2025 License: Apache-2.0 Imports: 11 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[iochantypes.Packet]

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[iochantypes.Packet], callback func(), cancel context.CancelCauseFunc)

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

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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