Documentation
¶
Index ¶
- type Client
- type Dispatcher
- func (d *Dispatcher) CommitContext(ctx context.Context, clientID string, topic message.Topic, idx int) error
- func (d *Dispatcher) ReadContext(ctx context.Context, clientID string, topic message.Topic, limit int, ...) ([]message.Message, error)
- func (d *Dispatcher) WriteContext(ctx context.Context, topic string, msgs ...[]byte) error
- type Signal
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
WriteContext(ctx context.Context, topic message.Topic, msgs ...[]byte) error
ReadContext(ctx context.Context, clientID string, topic message.Topic, limit int, wait time.Duration) ([]message.Message, error)
CommitContext(ctx context.Context, clientID string, topic message.Topic, idx int) error
}
type Dispatcher ¶
type Dispatcher struct {
// contains filtered or unexported fields
}
func NewDispatcher ¶
func NewDispatcher(store Store) *Dispatcher
func (*Dispatcher) CommitContext ¶
func (*Dispatcher) ReadContext ¶
func (*Dispatcher) WriteContext ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
read_test
command
|
|
|
roqued
command
|
|
|
roundtrip
command
|
|
|
write_test
command
|
|
Click to show internal directories.
Click to hide internal directories.