Documentation ¶
Index ¶
- type Memory
- func (m *Memory) Consumer(ctx context.Context, name string, f queueLib.ConsumerFunc, ...)
- func (m *Memory) Publish(ctx context.Context, msg messageLib.IMessage, ...) error
- func (m *Memory) RpcRequest(ctx context.Context, key string, data []byte, ...) ([]byte, error)
- func (m *Memory) Run(ctx context.Context)
- func (m *Memory) Shutdown(ctx context.Context)
- func (*Memory) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Memory ¶
type Memory struct { PoolNum uint // contains filtered or unexported fields }
func (*Memory) Consumer ¶
func (m *Memory) Consumer(ctx context.Context, name string, f queueLib.ConsumerFunc, optionFuncs ...func(*queueLib.ConsumeOptions))
Consumer 监听消费者
func (*Memory) Publish ¶
func (m *Memory) Publish(ctx context.Context, msg messageLib.IMessage, optionFuncs ...func(*queueLib.PublishOptions)) error
Publish 消息入生产者
func (*Memory) RpcRequest ¶ added in v2.0.23
Click to show internal directories.
Click to hide internal directories.