Documentation ¶
Index ¶
- type RedisPubSubDispatcherStub
- func (d *RedisPubSubDispatcherStub) Await(ctx context.Context, channel pubsub.RedisChannelID) (pubsub.RedisPubSubAwaiter, pubsub.AwaitCancelFunc)
- func (d *RedisPubSubDispatcherStub) HookAwaitOnce(channel pubsub.RedisChannelID, f func(pubsub.RedisPubSubPromise))
- func (d *RedisPubSubDispatcherStub) Reject(err error)
- func (d *RedisPubSubDispatcherStub) Resolve(channel pubsub.RedisChannelID)
- func (d *RedisPubSubDispatcherStub) Shutdown(ctx context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisPubSubDispatcherStub ¶
type RedisPubSubDispatcherStub struct {
// contains filtered or unexported fields
}
RedisPubSubDispatcherStub implements RedisPubSubDispatcher
func NewRedisPubSubDispatcherStub ¶
func NewRedisPubSubDispatcherStub() *RedisPubSubDispatcherStub
NewRedisPubSubDispatcherStub returns new RedisPubSubDispatcherStub
func (*RedisPubSubDispatcherStub) Await ¶
func (d *RedisPubSubDispatcherStub) Await(ctx context.Context, channel pubsub.RedisChannelID) (pubsub.RedisPubSubAwaiter, pubsub.AwaitCancelFunc)
Await implements RedisPubSubDispatcher
func (*RedisPubSubDispatcherStub) HookAwaitOnce ¶
func (d *RedisPubSubDispatcherStub) HookAwaitOnce(channel pubsub.RedisChannelID, f func(pubsub.RedisPubSubPromise))
HookAwaitOnce is to register hook to future Await() call.
func (*RedisPubSubDispatcherStub) Reject ¶
func (d *RedisPubSubDispatcherStub) Reject(err error)
Reject all promises
func (*RedisPubSubDispatcherStub) Resolve ¶
func (d *RedisPubSubDispatcherStub) Resolve(channel pubsub.RedisChannelID)
Resolve all promises of the channel
func (*RedisPubSubDispatcherStub) Shutdown ¶
func (d *RedisPubSubDispatcherStub) Shutdown(ctx context.Context)
Shutdown implements RedisPubSubDispatcher
Click to show internal directories.
Click to hide internal directories.