Versions in this module Expand all Collapse all v1 v1.0.1 Jan 13, 2023 v1.0.0 Sep 16, 2022 Changes in this version + func Initialize(ctx context.Context) + type Type struct + var Instance *Type + func NewService(db *dao.Type) *Type + func (s *Type) AcquireLock(ctx context.Context, name, ownerID string, duration time.Duration, ...) (ok bool, err error) + func (s *Type) LoadLockByName(ctx context.Context, name string) (lock *model.Lock, err error)