Documentation
¶
Index ¶
- func EncodeHeader(packetType byte, header *packet.Header, remLength int, buff []byte) (int, error)
- func WithStatRecorder(recorder StatRecorder) option
- type BufferProvider
- type Encoder
- func (e *Encoder) ConnAck(w io.Writer, p *packet.ConnAck) error
- func (e *Encoder) Encode(w io.Writer, p packet.Packet) error
- func (e *Encoder) Marshal(p packet.Packet) ([]byte, error)
- func (e *Encoder) PingResp(w io.Writer, p *packet.PingResp) error
- func (e *Encoder) PubAck(w io.Writer, p *packet.PubAck) error
- func (e *Encoder) Publish(w io.Writer, p *packet.Publish) error
- func (e *Encoder) SubAck(w io.Writer, p *packet.SubAck) error
- func (e *Encoder) UnsubAck(w io.Writer, p *packet.UnsubAck) error
- type StatRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeHeader ¶
func WithStatRecorder ¶
func WithStatRecorder(recorder StatRecorder) option
Types ¶
type BufferProvider ¶
type StatRecorder ¶
type StatRecorder interface {
Add(float64)
}
Click to show internal directories.
Click to hide internal directories.