tio

package
v1.3.10 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadWithDeadline

func ReadWithDeadline(conn net.Conn, buffer []byte, deadline time.Duration) error

ReadWithDeadline reads a buffer from a connection with a deadline.

func ShouldLogIOError

func ShouldLogIOError(err error) bool

ShouldLogIOError returns true if the error should be logged.

func ShouldLogIOErrorOriginal added in v1.3.7

func ShouldLogIOErrorOriginal(err error) bool

ShouldLogIOErrorOriginal returns true if the error should be logged. (kept for use later)

func WriteWithDeadline

func WriteWithDeadline(conn net.Conn, buffer []byte, deadline time.Duration) error

WriteWithDeadline writes a buffer to a connection with a deadline.

Types

This section is empty.

Jump to

Keyboard shortcuts

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