internal

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(ctx context.Context, dst io.Writer, src io.Reader) error

slightly modified function signature: - context has been added in order to propagate cancelation - I do not return the number of bytes written, has it is not useful in my use case

func Copyd

func Copyd(done <-chan struct{}, dst io.Writer, src io.Reader) error

func IsCaredNetError

func IsCaredNetError(err error) bool

IsCaredNetError detects an error if it should be cared by socketlib

func OnRead

func OnRead(done <-chan struct{}, src io.Reader, onRead writerFunc) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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