Documentation
¶
Overview ¶
Package copier provides a utility type for simplex proxy connections.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Copier ¶
type Copier struct { // Activity will be called if it is non-nil whenever traffic // has been copied. Activity func(written int64) From DeadlineReader To DeadlineWriter // The period of time to wait before interrupting a copy to check // for Context cancellation or to report the number of bytes copied. WakePeriod time.Duration }
Copier implements a simplex proxy connection.
func (*Copier) Copy ¶
Copy executes the given copy operation, but adds an occasional check for context cancellation.
func (*Copier) MarshalYAML ¶ added in v0.1.2
MarshalYAML implements yaml.Marshaler and provides diagnostic information.
type DeadlineReader ¶ added in v0.1.2
DeadlineReader is under pressure to perform.
Click to show internal directories.
Click to hide internal directories.