Documentation ¶
Index ¶
- type SendChan
- func (c *SendChan) Receive(ctx context.Context, tick <-chan time.Time) (*proto.MessageEntry, bool, error)
- func (c *SendChan) SendAsync(topic string, value []byte, nextSeq func() int64) (ok bool, seq int64)
- func (c *SendChan) SendSync(ctx context.Context, topic string, value []byte, closeCh <-chan struct{}, ...) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SendChan ¶
type SendChan struct {
// contains filtered or unexported fields
}
SendChan is a specialized channel used to implement the asynchronous interface of the MessageClient. SendChan is a MPSC channel.
func (*SendChan) Receive ¶
func (c *SendChan) Receive(ctx context.Context, tick <-chan time.Time) (*proto.MessageEntry, bool, error)
Receive receives one message from the channel. If a message is received from `tick`, the function will return (nil, false, nil).
Click to show internal directories.
Click to hide internal directories.