stub

package
v0.0.0-...-ef901e4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL