tap

package
v1.22.5 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Listen

func Listen(f func(dir, key string, body []byte))

Listen hands f every message from now on: "in" for a delivery, "out" for a publication. Nil stops it.

func Message

func Message(dir, key string, body []byte)

Message is what a tool calls for each message it moves.

func Route

func Route(ctx context.Context, pattern string)

Route names the request by the pattern a router matched, for whoever asked with WithRoute.

func WithRoute

func WithRoute(ctx context.Context, route *string) context.Context

WithRoute is where Route writes the pattern a router matched for the request ctx belongs to.

Types

This section is empty.

Jump to

Keyboard shortcuts

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