v.io: v.io/x/ref/runtime/protocols/debug Index | Files

package debug

import "v.io/x/ref/runtime/protocols/debug"


Package Files


func WithFilter Uses

func WithFilter(ctx *context.T, filter Filter) *context.T

WithFilter attaches a filter to the context. Any connection accepted or dialed with the debug protocol using this context will be wrapped via a call to filter.

func WrapAddress Uses

func WrapAddress(protocol, address string) (string, string)

func WrapName Uses

func WrapName(name string) string

type Filter Uses

type Filter func(flow.Conn) flow.Conn

Filters give you the chance to add your own logic to flow.Conns that get created. This is useful in tests. For example you might want to modify all packets, print them out, or perhaps cause errors.

Package debug imports 7 packages (graph). Updated 2020-09-08. Refresh now. Tools for package owners.