Documentation ¶
Index ¶
- func NewMsgBus(client *redis.Client) xmsgbus.IMsgBus
- func NewSharedStorage(client *redis.Client) xmsgbus.ISharedStorage
- type MsgBus
- func (x *MsgBus) AddChannel(ctx context.Context, topic string, channel string) error
- func (x *MsgBus) ListChannel(ctx context.Context, topic string) ([]string, error)
- func (x *MsgBus) Pop(ctx context.Context, topic, channel string, blockTimeout time.Duration) ([]byte, error)
- func (x *MsgBus) Push(ctx context.Context, topic string, bs []byte) error
- func (x *MsgBus) RemoveChannel(ctx context.Context, topic string, channel string) error
- type SharedStorage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSharedStorage ¶
func NewSharedStorage(client *redis.Client) xmsgbus.ISharedStorage
Types ¶
type MsgBus ¶
type MsgBus struct {
// contains filtered or unexported fields
}
func (*MsgBus) AddChannel ¶
func (*MsgBus) ListChannel ¶
type SharedStorage ¶
type SharedStorage struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.