Documentation
¶
Index ¶
- type AsciiTransport
- func (at *AsciiTransport) ApplyOpts(opts ...Opt)
- func (c *AsciiTransport) Close() error
- func (c *AsciiTransport) Done() <-chan struct{}
- func (c *AsciiTransport) Input(buf []byte)
- func (s *AsciiTransport) InputEvent() <-chan *InputEvent
- func (c *AsciiTransport) InputFrom(r io.Reader) error
- func (c *AsciiTransport) Output(buf []byte)
- func (c *AsciiTransport) OutputEvent() <-chan *OutputEvent
- func (c *AsciiTransport) OutputFrom(r io.Reader) error
- func (c *AsciiTransport) Resize(height, width uint)
- func (s *AsciiTransport) ResizeEvent() <-chan *ResizeEvent
- type AsciiTransportClient
- type AsciiTransportServer
- type Event
- type InputEvent
- type Logger
- type Opt
- type OutputEvent
- type PingEvent
- type ResizeEvent
- type Resizer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AsciiTransport ¶
type AsciiTransport struct {
// contains filtered or unexported fields
}
func (*AsciiTransport) ApplyOpts ¶
func (at *AsciiTransport) ApplyOpts(opts ...Opt)
func (*AsciiTransport) Close ¶
func (c *AsciiTransport) Close() error
func (*AsciiTransport) Done ¶
func (c *AsciiTransport) Done() <-chan struct{}
func (*AsciiTransport) Input ¶
func (c *AsciiTransport) Input(buf []byte)
func (*AsciiTransport) InputEvent ¶
func (s *AsciiTransport) InputEvent() <-chan *InputEvent
func (*AsciiTransport) Output ¶
func (c *AsciiTransport) Output(buf []byte)
func (*AsciiTransport) OutputEvent ¶
func (c *AsciiTransport) OutputEvent() <-chan *OutputEvent
func (*AsciiTransport) OutputFrom ¶
func (c *AsciiTransport) OutputFrom(r io.Reader) error
func (*AsciiTransport) Resize ¶
func (c *AsciiTransport) Resize(height, width uint)
func (*AsciiTransport) ResizeEvent ¶
func (s *AsciiTransport) ResizeEvent() <-chan *ResizeEvent
type AsciiTransportClient ¶
type AsciiTransportClient interface { OutputEvent() <-chan *OutputEvent Input([]byte) InputFrom(io.Reader) error Resize(uint, uint) Done() <-chan struct{} Close() error }
func Client ¶
func Client(conn io.ReadWriteCloser, opts ...Opt) AsciiTransportClient
type AsciiTransportServer ¶
type AsciiTransportServer interface { ResizeEvent() <-chan *ResizeEvent InputEvent() <-chan *InputEvent Output([]byte) OutputFrom(io.Reader) error Done() <-chan struct{} Close() error ApplyOpts(...Opt) }
func Server ¶
func Server(conn io.ReadWriteCloser, opts ...Opt) AsciiTransportServer
type Event ¶
func (*Event) UnmarshalJSON ¶
type InputEvent ¶
type InputEvent Event
func (*InputEvent) String ¶
func (e *InputEvent) String() string
type Logger ¶
type Logger interface { Print(v interface{}) Close() error }
func NewLogger ¶
func NewLogger(w io.WriteCloser) Logger
type Opt ¶
type Opt func(at *AsciiTransport)
func WithCommand ¶
func WithLogger ¶
func WithLogger(w io.WriteCloser) Opt
func WithReader ¶
func WithWriter ¶
type OutputEvent ¶
type OutputEvent Event
func (*OutputEvent) String ¶
func (e *OutputEvent) String() string
type ResizeEvent ¶
func (*ResizeEvent) String ¶
func (e *ResizeEvent) String() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.