testutil

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2018 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