connutil

package
v0.5.18 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LastUsageConn

type LastUsageConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewLastUsageConn

func NewLastUsageConn(conn net.Conn) *LastUsageConn

func (*LastUsageConn) LastUsage

func (c *LastUsageConn) LastUsage() time.Time

func (*LastUsageConn) Read

func (c *LastUsageConn) Read(p []byte) (n int, err error)

func (*LastUsageConn) Write

func (c *LastUsageConn) Write(p []byte) (n int, err error)

type TimeoutConn

type TimeoutConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func NewTimeout

func NewTimeout(conn net.Conn, timeout time.Duration) *TimeoutConn

func (*TimeoutConn) Write

func (c *TimeoutConn) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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