testutil

package
v0.0.0-...-2745715 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialer

type Dialer func(ctx context.Context, proto string, meta map[string][]string) (net.Conn, error)

Dialer is a function for dialing an outgoing connection

func TestStream

func TestStream(handler Handler) Dialer

TestStream creates an in memory session dialer for a handler function

type Handler

type Handler func(ctx context.Context, conn net.Conn, meta map[string][]string) error

Handler is function called to handle incoming connection

Jump to

Keyboard shortcuts

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