bidipipe

package
v0.0.0-...-a5f7211 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 7

Documentation

Overview

Bi-directional pipe (for proxying use cases)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pipe

func Pipe(
	party1 NamedEndpoint,
	party2 NamedEndpoint,
) error

make two parties talk to each other (usually for proxying use cases). for debugging purposes you can optionally name the endpoints (see WithName(), Unnamed() )

Types

type NamedEndpoint

type NamedEndpoint struct {
	// contains filtered or unexported fields
}

func Unnamed

func Unnamed(endpoint io.ReadWriteCloser) NamedEndpoint

func WithName

func WithName(name string, endpoint io.ReadWriteCloser) NamedEndpoint

Jump to

Keyboard shortcuts

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