Documentation
¶
Index ¶
- func GetGlobalLockFactory() *storage_lock_factory.StorageLockFactoryBeanFactory[string, any]
- func GetLockFactory(ctx context.Context) (*storage_lock_factory.StorageLockFactory[any], error)
- func NewLock(ctx context.Context, lockId string) (*storage_lock.StorageLock, error)
- func NewLockWithOptions(ctx context.Context, options *storage_lock.StorageLockOptions) (*storage_lock.StorageLock, error)
- type LockFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGlobalLockFactory ¶
func GetGlobalLockFactory() *storage_lock_factory.StorageLockFactoryBeanFactory[string, any]
func GetLockFactory ¶
func GetLockFactory(ctx context.Context) (*storage_lock_factory.StorageLockFactory[any], error)
func NewLock ¶
func NewLock(ctx context.Context, lockId string) (*storage_lock.StorageLock, error)
NewLock 从DSN创建锁
func NewLockWithOptions ¶
func NewLockWithOptions(ctx context.Context, options *storage_lock.StorageLockOptions) (*storage_lock.StorageLock, error)
Types ¶
type LockFactory ¶
type LockFactory struct {
*storage_lock_factory.StorageLockFactory[any]
}
func NewLockFactory ¶
func NewLockFactory() (*LockFactory, error)
Click to show internal directories.
Click to hide internal directories.