Documentation ¶
Index ¶
- Variables
- func InitSync(c *cron.Cron)
- func NewDepartmentSyncBackOff(stat redis.SyncStat, schedule cron.Schedule) backoff.Backoff
- func NewUserSyncBackoff(stat redis.SyncStat, schedule cron.Schedule) backoff.Backoff
- type RelatedUserInfo
- type User
- func (u User) DepartmentModels(uid uint, groupMap map[string]uint) []dao.UserGroups
- func (u User) Departments(groupMap map[string]uint) []uint
- func (u User) IsInvalid() bool
- func (u User) IsModelEmpty() bool
- func (u User) Model() dao.User
- func (u User) SyncDepartments(tx *gorm.DB, uid uint, groupMap map[string]uint) error
- type UserSyncProcessor
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type RelatedUserInfo ¶
type UserSyncProcessor ¶
func (*UserSyncProcessor) PrintSyncResult ¶
func (a *UserSyncProcessor) PrintSyncResult()
func (*UserSyncProcessor) Run ¶
func (a *UserSyncProcessor) Run() error
Click to show internal directories.
Click to hide internal directories.