Documentation ¶
Index ¶
- func NewMsgBus() xmsgbus.IMsgBus
- func NewStorage() 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, func(), 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 Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStorage ¶
func NewStorage() xmsgbus.ISharedStorage
Types ¶
type MsgBus ¶
type MsgBus struct {
// contains filtered or unexported fields
}
func (*MsgBus) AddChannel ¶
func (*MsgBus) ListChannel ¶
Click to show internal directories.
Click to hide internal directories.