ldap

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LdapRepo

type LdapRepo struct {
	// contains filtered or unexported fields
}

func NewLdapRepo

func NewLdapRepo(db *gorm.DB) *LdapRepo

func (*LdapRepo) Close

func (repo *LdapRepo) Close()

Close close db

func (*LdapRepo) CreateOrUpdate

func (repo *LdapRepo) CreateOrUpdate(update map[string]interface{}) error

func (*LdapRepo) MarkErrorOccur

func (repo *LdapRepo) MarkErrorOccur(id, syncGen uint64, errMsg string) bool

func (*LdapRepo) SelectFirstOne

func (repo *LdapRepo) SelectFirstOne() (*model.LdapModel, error)

func (*LdapRepo) TryLock

func (repo *LdapRepo) TryLock(id uint64, newProtectedTs, nowProtectedTs int64) bool

func (*LdapRepo) TryUnLock

func (repo *LdapRepo) TryUnLock(id uint64, nowProtectedTs int64)

func (*LdapRepo) UpdateGen

func (repo *LdapRepo) UpdateGen(id uint64, gen uint64, entries int, inserts int, updates int, deletes, fails int,
	costs int64) error

Jump to

Keyboard shortcuts

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