stream

package
v0.0.0-...-6ac2077 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Forward

func Forward[T any, A Stream[T], B Stream[T]](ctx context.Context, a A, b B) error

func ForwardConn

func ForwardConn[T Stream[*pb.Frame]](ctx context.Context, stream T, conn net.Conn) error

Types

type Stream

type Stream[T any] interface {
	Send(T) error
	Recv() (T, error)
}

Jump to

Keyboard shortcuts

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