node

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Duplex

type Duplex[X any] struct {
	ID string
	Ch chan X
}

func New

func New[X any](id string, bufsize int) *Duplex[X]

func (Duplex[X]) AsInput

func (n Duplex[X]) AsInput() Input[X]

func (Duplex[X]) AsOutput

func (n Duplex[X]) AsOutput() Output[X]

func (Duplex[X]) Connect

func (n Duplex[X]) Connect(o withOutput[X], i withInput[X])

func (*Duplex[X]) Init

func (n *Duplex[X]) Init(id string, bufsize int)

type Input

type Input[X any] struct {
	ID string
	Ch <-chan X
}

type Output

type Output[X any] struct {
	ID string
	Ch chan<- X
}

Jump to

Keyboard shortcuts

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