Versions in this module Expand all Collapse all v1 v1.26.7 Apr 20, 2026 v1.26.6 Mar 12, 2026 Changes in this version + var ErrClosed = errors.New("duplex closed") + var ErrFailed = errors.New("duplex failed") + var ErrRejected = errors.New("duplex rejected") + var ErrUnavailable = errors.New("duplex unavailable") + func IsExpectedDisconnect(err error) bool + func NewError(kind error, reason string) error + type Duplex interface + Close func(cause error) error + Recv func(ctx context.Context) ([]byte, error) + Send func(ctx context.Context, b []byte) error + type Error struct + Kind error + Reason string + func (e Error) Error() string + func (e Error) Is(target error) bool