Back to

Package pooled

Latest Go to latest

The latest major version is .

Published: May 21, 2020 | License: Apache-2.0 | Module:


type Conn

type Conn interface {

	Log() *zap.SugaredLogger
	ReadWriter() *bufio.ReadWriter
	SetReadDeadline(t time.Time) error
	SetWriteDeadline(t time.Time) error
	EmptyReadBuffer(timeout time.Duration) ([]byte, error)
	ReadUntil(delim byte, timeout time.Duration) ([]byte, error)
	// contains filtered or unexported methods

Conn .

func Wrap

func Wrap(c net.Conn) Conn

Wrap .

type Map

type Map struct {
	// contains filtered or unexported fields

Map .

func NewMap

func NewMap(ttl, delay time.Duration, newConn NewConnection) *Map

NewMap .

func (*Map) Do

func (m *Map) Do(key interface{}, work Work) error

Do .

type NewConnection

type NewConnection func(key interface{}) (Conn, error)

NewConnection .

type Work

type Work func(Conn) error

Work .

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier