stdio

package
v0.0.0-...-821ef61 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2017 License: MIT Imports: 6 Imported by: 1

Documentation

Overview

Package stdio is a Connection to a stdin/stdout Terminal session

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	Inbox map[int]message.Basic
}

Connection provides an interface for storing the inbox for received messages via stdio connection type

func NewConnection

func NewConnection() *Connection

NewConnection creates a new StdIO object with an inbox to keep track of messages

func (*Connection) Start

func (s *Connection) Start(errorChannel chan error) (rx, tx message.BasicChannel)

Start creates two message channels to send and receive messages. It will start two goroutines to listen and send on these channels

Jump to

Keyboard shortcuts

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