Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AsyncSinkFactory ¶
type AsyncSinkFactory interface {
NewAsyncSink(ctx context.Context, req *proto.StartPublishRequest) (substrate.AsyncMessageSink, error)
}
type AsyncSinkSourceFactory ¶
type AsyncSinkSourceFactory interface { AsyncSinkFactory AsyncSourceFactory }
type AsyncSourceFactory ¶
type AsyncSourceFactory interface {
NewAsyncSource(ctx context.Context, req *proto.StartConsumeRequest) (substrate.AsyncMessageSource, error)
}
type SinkServer ¶
type SinkServer struct {
SinkFactory AsyncSinkFactory
}
func (*SinkServer) Publish ¶
func (s *SinkServer) Publish(stream proto.MessageSink_PublishServer) error
type SourceServer ¶
type SourceServer struct { SourceFactory AsyncSourceFactory SkipDiscard bool }
func (*SourceServer) Consume ¶
func (s *SourceServer) Consume(stream proto.MessageSource_ConsumeServer) error
Click to show internal directories.
Click to hide internal directories.