transport

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clipboard

type Clipboard struct{}

func (*Clipboard) Read

func (c *Clipboard) Read() (string, error)

func (*Clipboard) Reset

func (c *Clipboard) Reset()

func (*Clipboard) Write

func (c *Clipboard) Write(text string) error

type Command

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

func NewCommand

func NewCommand(cmd string, bufferSize int, interval time.Duration) (*Command, error)

func (*Command) Read

func (c *Command) Read() (string, error)

func (*Command) Reset

func (c *Command) Reset()

func (*Command) Write

func (c *Command) Write(text string) error

type TCPConn

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

func DialTCP

func DialTCP(addr string, bufferSize int, interval time.Duration) (*TCPConn, error)

func ListenTCP

func ListenTCP(addr string, bufferSize int, interval time.Duration) (*TCPConn, error)

func (*TCPConn) Read

func (c *TCPConn) Read() (string, error)

func (*TCPConn) Reset

func (c *TCPConn) Reset()

func (*TCPConn) Write

func (c *TCPConn) Write(text string) error

type Transport

type Transport interface {
	Read() (string, error)
	Write(text string) error
	Reset()
}

Jump to

Keyboard shortcuts

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