package tracing
import "aqwari.net/net/styx/internal/tracing"
Package tracing provides tracing of sent and received 9P messages.
Index ¶
- func Decoder(r io.Reader, fn Func) *styxproto.Decoder
- func Encoder(w io.Writer, fn Func) *styxproto.Encoder
- type Func
Functions ¶
func Decoder ¶
Decoder creates a new styxproto.Decoder that traces messages received on r.
func Encoder ¶
Encoder creates a new styxproto.Encoder that traces messages before writing them to w.
Types ¶
type Func ¶
A Func can be used to access 9P messages as they pass through a styxproto.Encoder or a styxproto.Decoder. Messages are not copied; a TraceFn should not modify msg, and msg should not be accessed after the TraceFn returns.
Source Files ¶
trace.go
- Version
- v0.0.0-20221011015736-bf55d759d56b (latest)
- Published
- Oct 11, 2022
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 4 days ago –
Tools for package owners.