sessions

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 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 Event

type Event struct {
	Stamp time.Time
	Data  EventData
}

type EventData

type EventData interface {
	Type() EventType
}

type EventType

type EventType byte
const (
	EventTypeOutput EventType = iota
	EventTypeResize
)

type OutputEvent

type OutputEvent Write

func (OutputEvent) Type

func (i OutputEvent) Type() EventType

type Recorder

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

func New

func New() *Recorder

func NewRecorder

func NewRecorder(stream stream.Stream) *Recorder

func (*Recorder) Events

func (s *Recorder) Events() []Event

func (*Recorder) Read

func (s *Recorder) Read(p []byte) (n int, err error)

func (*Recorder) Resize

func (s *Recorder) Resize(size stream.Size) error

func (*Recorder) Write

func (s *Recorder) Write(data []byte) (n int, err error)

type ResizeEvent

type ResizeEvent struct {
	Columns int
	Rows    int
}

func (ResizeEvent) Type

func (i ResizeEvent) Type() EventType

type Write

type Write struct {
	Bytes []byte
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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