tracing

package
v0.0.0-...-bf55d75 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package tracing provides tracing of sent and received 9P messages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decoder

func Decoder(r io.Reader, fn Func) *styxproto.Decoder

Decoder creates a new styxproto.Decoder that traces messages received on r.

func Encoder

func Encoder(w io.Writer, fn Func) *styxproto.Encoder

Encoder creates a new styxproto.Encoder that traces messages before writing them to w.

Types

type Func

type Func func(msg styxproto.Msg)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL