resource

package
v1.11.7 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: MIT Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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

Consume 提取单条消息并反序列化为事件

func (*FieldSecureAttrChangeConsumer) Process

Process 调度针对指定属性的单协程任务流水线

func (*FieldSecureAttrChangeConsumer) Start

Start 启动后台消费循环,支持响应上下文取消实现优雅停机

Jump to

Keyboard shortcuts

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