byteblob

package
v0.0.0-...-69203f8 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(size int) ([]byte, error)

New returns a byte slice of the given size and an error

func Receive

func Receive(ctx context.Context, wg *sync.WaitGroup, conn net.Conn, bufSize int)

Receive starts reading from the specified connection. It takes a context (for cancellation) and waitgroup (clean shutdown). Buffer size used for reading is configurable. Upon returning it closes conn.

Types

This section is empty.

Jump to

Keyboard shortcuts

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