Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adaptor ¶
type Adaptor struct {
// contains filtered or unexported fields
}
Adaptor 结构体
func (*Adaptor) ListSyncRecord ¶
func (a *Adaptor) ListSyncRecord() ([]dao.UCSyncRecord, error)
ListSyncRecord 查看uc同步历史记录
func (*Adaptor) PullAudits ¶
func (a *Adaptor) PullAudits() (*apistructs.UCAuditsListResponse, error)
PullAudits 拉取uc的审计事件
func (*Adaptor) PullAuditsByIDs ¶
func (a *Adaptor) PullAuditsByIDs(ucIDs []int64) (*apistructs.UCAuditsListResponse, error)
PullAuditsByIDs 指定uc事件id获取事件
func (*Adaptor) RegistryReceiver ¶
RegistryReceiver 注册uc审计事件的接收者
type AuditReceiver ¶
type AuditReceiver struct {
// contains filtered or unexported fields
}
AuditReceiver audit接收uc审计对象
func NewAuditReceiver ¶
func NewAuditReceiver(bdl *bundle.Bundle) *AuditReceiver
NewAuditReceiver 初始化审计事件接收者
func (*AuditReceiver) SendAudits ¶
func (ar *AuditReceiver) SendAudits(ucaudits *apistructs.UCAuditsListResponse) ([]int64, error)
SendAudits .....
type MemberReceiver ¶
type MemberReceiver struct {
// contains filtered or unexported fields
}
MemberReceiver member接收uc审计对象
func NewMemberReceiver ¶
func NewMemberReceiver(bdl *bundle.Bundle) *MemberReceiver
NewMemberReceiver 初始化成员接收者
func (*MemberReceiver) SendAudits ¶
func (mr *MemberReceiver) SendAudits(ucaudits *apistructs.UCAuditsListResponse) ([]int64, error)
SendAudits .....
type Receiver ¶
type Receiver interface { SendAudits(ucaudits *apistructs.UCAuditsListResponse) ([]int64, error) Name() string }
Receiver 接收uc事件通知的对象
Click to show internal directories.
Click to hide internal directories.