Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrStreamNotFound = errors.New("stream could not be found")
Functions ¶
This section is empty.
Types ¶
type Stream ¶
type Stream struct {
// contains filtered or unexported fields
}
Stream provides a bidirectional communication channel between Olric nodes and clients. It can also be used for node-to-node communication.
func (*Stream) Close ¶
func (s *Stream) Close()
Close calls s.cancel and stops all background goroutines.
func (*Stream) Write ¶
func (s *Stream) Write(m protocol.EncodeDecoder)
type Streams ¶
Streams maps StreamIDs to Stream
func New ¶
func New(e *environment.Environment) *Streams
func (*Streams) DeleteStreamByID ¶
func (*Streams) RegisterOperations ¶
func (ss *Streams) RegisterOperations(operations map[protocol.OpCode]func(w, r protocol.EncodeDecoder))
Click to show internal directories.
Click to hide internal directories.