Documentation ¶
Index ¶
- Constants
- Variables
- type Multiplex
- type Stream
- func (s *Stream) Close() error
- func (s *Stream) Name() string
- func (s *Stream) Read(b []byte) (int, error)
- func (s *Stream) Reset() error
- func (s *Stream) SetDeadline(t time.Time) error
- func (s *Stream) SetReadDeadline(t time.Time) error
- func (s *Stream) SetWriteDeadline(t time.Time) error
- func (s *Stream) Write(b []byte) (int, error)
Constants ¶
View Source
const ( NewStream = 0 Message = 1 Close = 3 Reset = 5 )
+1 for initiator
Variables ¶
View Source
var ErrShutdown = errors.New("session shut down")
View Source
var MaxMessageSize = 1 << 20
View Source
var ReceiveTimeout = 5 * time.Second
Max time to block waiting for a slow reader to read from a stream before resetting it. Preferably, we'd have some form of back-pressure mechanism but we don't have that in this protocol.
Functions ¶
This section is empty.
Types ¶
type Multiplex ¶
type Multiplex struct {
// contains filtered or unexported fields
}
func (*Multiplex) NewNamedStream ¶
type Stream ¶
type Stream struct {
// contains filtered or unexported fields
}
func (*Stream) SetReadDeadline ¶ added in v0.1.0
func (*Stream) SetWriteDeadline ¶ added in v0.1.0
Click to show internal directories.
Click to hide internal directories.