Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Append ¶
func Append(pool *AppendStreamPool, ts *gateway.TopicService, req *v1.AppendRequest) (err error)
Types ¶
type AppendChan ¶
type AppendChan = chan *v1.AppendRequest
type AppendStream ¶
type AppendStream struct { Stream v1.BufferService_AppendClient ReqCh AppendChan }
type AppendStreamPool ¶
type AppendStreamPool struct { Ctx context.Context // Every stream will have the same context ResCh chan *v1.AppendResponse Streams map[domain.BufferAddress]AppendChan DialOptions []grpc.DialOption // contains filtered or unexported fields }
func NewAppendStreamPool ¶
func NewAppendStreamPool(ctx context.Context, opts ...grpc.DialOption) *AppendStreamPool
func (*AppendStreamPool) Append ¶
func (p *AppendStreamPool) Append(addr domain.BufferAddress, req *v1.AppendRequest)
Click to show internal directories.
Click to hide internal directories.