tracing

package
Version: v0.0.0-...-0320e6f Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2020 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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL