Documentation ¶
Index ¶
- Variables
- type BlockingRW
- type FakeAddr
- type FakeConnectionInfo
- func (f *FakeConnectionInfo) Crypto() string
- func (f *FakeConnectionInfo) EstablishedAt() time.Time
- func (f *FakeConnectionInfo) Priority() int
- func (f *FakeConnectionInfo) RemoteAddr() net.Addr
- func (f *FakeConnectionInfo) String() string
- func (f *FakeConnectionInfo) Transport() string
- func (f *FakeConnectionInfo) Type() string
- type NoopCloser
- type NoopRW
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrClosed = errors.New("closed")
Functions ¶
This section is empty.
Types ¶
type BlockingRW ¶
type BlockingRW struct {
// contains filtered or unexported fields
}
BlockingRW implements io.Reader, Writer and Closer, but only returns when closed
func NewBlockingRW ¶ added in v1.12.1
func NewBlockingRW() *BlockingRW
func (*BlockingRW) Close ¶ added in v1.12.1
func (rw *BlockingRW) Close() error
type FakeConnectionInfo ¶ added in v1.13.0
type FakeConnectionInfo struct {
Name string
}
FakeConnectionInfo implements the methods of protocol.Connection that are not implemented by protocol.Connection
func (*FakeConnectionInfo) Crypto ¶ added in v1.13.0
func (f *FakeConnectionInfo) Crypto() string
func (*FakeConnectionInfo) EstablishedAt ¶ added in v1.13.0
func (f *FakeConnectionInfo) EstablishedAt() time.Time
func (*FakeConnectionInfo) Priority ¶ added in v1.13.0
func (f *FakeConnectionInfo) Priority() int
func (*FakeConnectionInfo) RemoteAddr ¶ added in v1.13.0
func (f *FakeConnectionInfo) RemoteAddr() net.Addr
func (*FakeConnectionInfo) String ¶ added in v1.13.0
func (f *FakeConnectionInfo) String() string
func (*FakeConnectionInfo) Transport ¶ added in v1.13.0
func (f *FakeConnectionInfo) Transport() string
func (*FakeConnectionInfo) Type ¶ added in v1.13.0
func (f *FakeConnectionInfo) Type() string
type NoopCloser ¶ added in v1.13.0
type NoopCloser struct{}
func (NoopCloser) Close ¶ added in v1.13.0
func (NoopCloser) Close() error
Click to show internal directories.
Click to hide internal directories.