Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Stream ¶
type Stream struct { // Mux maps streams to data dispatchers Mux *mux.Mux // contains filtered or unexported fields }
Stream is a data stream
func (*Stream) Create ¶
func (s *Stream) Create(ctx context.Context, req *pb.CreateRequest, resp *pb.CreateResponse) error
Create creates new data stream. It creates new stream dispatcher. It returns error if the requested stream id has already been registered.
func (*Stream) Subscribe ¶
func (s *Stream) Subscribe(ctx context.Context, req *pb.SubscribeRequest, stream pb.Stream_SubscribeStream) error
Click to show internal directories.
Click to hide internal directories.