Documentation ¶ Index ¶ Variables type Bus type StreamReader type StreamWriter Constants ¶ This section is empty. Variables ¶ View Source var ( ErrClosed = errors.New("connection closed") ) Functions ¶ This section is empty. Types ¶ type Bus ¶ type Bus interface { Push(m *types.Message) // should be goroutine safe Pull() <-chan *types.Message Lock() // turn off the message supply Unlock() // turn on the message supply } type StreamReader ¶ type StreamReader interface { Read() (*types.Message, error) } type StreamWriter ¶ type StreamWriter interface { Write(*types.Message) error } Source Files ¶ View all Source files io.go Directories ¶ Show internal Expand all Path Synopsis bus channelbus reader channelreader grpcreader writer channelwriter grpcwriter slicewriter Click to show internal directories. Click to hide internal directories.