stream

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bidirectional

type Bidirectional struct {
	C1 *Endpoint
	C2 *Endpoint
}

Bidirectional is a bidirectional stream.

func NewBidirectional

func NewBidirectional() *Bidirectional

NewBidirectional returns a new Bidirectional stream.

func (*Bidirectional) Close

func (s *Bidirectional) Close() error

Close implements io.Closer.

type Endpoint

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

Endpoint modelizes one side of a bidirectional stream.

func (*Endpoint) Close

func (e *Endpoint) Close() error

Close implements io.Closer.

func (*Endpoint) Read

func (e *Endpoint) Read(p []byte) (n int, err error)

func (*Endpoint) Write

func (e *Endpoint) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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