io

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IOService

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

func New

func New(inbox Inbox, outbox Outbox, reader connection.Connection, codec app.Decoder) *IOService

func (*IOService) Read

func (service *IOService) Read(ctx context.Context) error

func (*IOService) Write

func (service *IOService) Write(ctx context.Context) error

type Inbox

type Inbox interface {
	Enqueue(context.Context, app.Message) error
}

type Outbox

type Outbox interface {
	Next(context.Context) ([]byte, error)
}

Jump to

Keyboard shortcuts

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