debug

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2019 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithFilter

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

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

func WrapName

func WrapName(name string) string

Types

type Filter

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.

Jump to

Keyboard shortcuts

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