Documentation
¶
Overview ¶
Package streaming interface
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Stream ¶
type Stream interface {
// Context the stream context.Context
Context() context.Context
// RecvMsg recvive message from peer
// will block until an error or a message received
// not concurrent-safety
RecvMsg(m interface{}) error
// SendMsg send message to peer
// will block until an error or enough buffer to send
// not concurrent-safety
SendMsg(m interface{}) error
// not concurrent-safety with SendMsg
io.Closer
}
Stream both client and server stream
Click to show internal directories.
Click to hide internal directories.