Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FieldDeleteConsumer ¶
type FieldDeleteConsumer struct {
// contains filtered or unexported fields
}
FieldDeleteConsumer 字段删除事件消费者
func NewFieldDeleteConsumer ¶
func NewFieldDeleteConsumer(consumer mq.Consumer, svc resourceservice.Service) *FieldDeleteConsumer
NewFieldDeleteConsumer 构造字段删除消费者
func (*FieldDeleteConsumer) Consume ¶
func (c *FieldDeleteConsumer) Consume(ctx context.Context) error
Consume 提取事件消息并反序列化
func (*FieldDeleteConsumer) Process ¶
func (c *FieldDeleteConsumer) Process(ctx context.Context, evt domain.FieldDelete) error
Process 处理级联删除事件逻辑
func (*FieldDeleteConsumer) Start ¶
func (c *FieldDeleteConsumer) Start(ctx context.Context)
Start 启动后台消费循环,支持响应上下文取消实现优雅退出
type FieldSecureAttrChangeConsumer ¶
type FieldSecureAttrChangeConsumer struct {
// contains filtered or unexported fields
}
FieldSecureAttrChangeConsumer 负责在模型属性的安全状态(加密/解密)变更时,异步批量重加密资产历史数据
func NewFieldSecureAttrChangeConsumer ¶
func NewFieldSecureAttrChangeConsumer(consumer mq.Consumer, svc resourceservice.EncryptedSvc, limit int64) *FieldSecureAttrChangeConsumer
NewFieldSecureAttrChangeConsumer 构造安全属性变更事件消费者
func (*FieldSecureAttrChangeConsumer) Consume ¶
func (c *FieldSecureAttrChangeConsumer) Consume(ctx context.Context) error
Consume 提取单条消息并反序列化为事件
func (*FieldSecureAttrChangeConsumer) Process ¶
func (c *FieldSecureAttrChangeConsumer) Process(ctx context.Context, evt domain.FieldSecureAttrChange) error
Process 调度针对指定属性的单协程任务流水线
func (*FieldSecureAttrChangeConsumer) Start ¶
func (c *FieldSecureAttrChangeConsumer) Start(ctx context.Context)
Start 启动后台消费循环,支持响应上下文取消实现优雅停机