stdinput

package
v1.8.5 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fcntl

func Fcntl(fd int, cmd int, arg int) (int, error)

Types

type Session

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

func NewStdinSession

func NewStdinSession(cfg input.SessionConfig) *Session

func (*Session) Start

func (s *Session) Start(ctx context.Context, dst [][]input.Sample, kickChan chan bool, mu *sync.Mutex) error

type StdInputDevice

type StdInputDevice struct{}

func (StdInputDevice) String

func (d StdInputDevice) String() string

type StdinBackend

type StdinBackend struct{}

func (StdinBackend) Close

func (b StdinBackend) Close() error

func (StdinBackend) DefaultDevice

func (b StdinBackend) DefaultDevice() (input.Device, error)

func (StdinBackend) Devices

func (b StdinBackend) Devices() ([]input.Device, error)

func (StdinBackend) Init

func (b StdinBackend) Init() error

func (StdinBackend) Start

func (b StdinBackend) Start(config input.SessionConfig) (input.Session, error)

Jump to

Keyboard shortcuts

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