monitor

package
v0.11.8 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package monitor provides a net.Conn wrapper that can intercept read and write errors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enable

func Enable(connection net.Conn) (net.Conn, <-chan error)

Enable wraps the specified connection and creates an error channel that returns the first read or write error to occur on the channel (if any). This includes any deadline-induced errors. If no error ever occurs during a read or write, no error will be written to the channel.

Types

This section is empty.

Jump to

Keyboard shortcuts

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