conn

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrContextDeadline = errors.New("context deadline")

Functions

This section is empty.

Types

type Conn

type Conn interface {
	net.Conn
	ReadUntil(expire time.Time, whenEmpty bool) ([]byte, error)
	ReadToUntil(writer io.Writer, expire time.Time) (int, error)
	WriteUntil(b []byte, expire time.Time) (int, error)
	WriteBytes() uint64
	ReadBytes() uint64
	Created() time.Time
	LastActive() time.Time
	SetSeparator(separator uint8)
	GetSeparator() uint8
	ID() uint64
}

func New

func New(cc net.Conn) Conn

Jump to

Keyboard shortcuts

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