Documentation
¶
Index ¶
- func GetLockFactoryByDSN(ctx context.Context, dsn string) (*storage_lock_factory.StorageLockFactory[*sql.DB], error)
- func GetLockFactoryBySqlDB(ctx context.Context, db *sql.DB) (*storage_lock_factory.StorageLockFactory[*sql.DB], error)
- func NewLockByDSN(ctx context.Context, dsn string, lockId string) (*storage_lock.StorageLock, error)
- func NewLockByDSNWithOptions(ctx context.Context, dsn string, options *storage_lock.StorageLockOptions) (*storage_lock.StorageLock, error)
- func NewLockBySqlDB(ctx context.Context, db *sql.DB, lockId string) (*storage_lock.StorageLock, error)
- func NewLockBySqlDBWithOptions(ctx context.Context, db *sql.DB, options *storage_lock.StorageLockOptions) (*storage_lock.StorageLock, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLockFactoryByDSN ¶
func GetLockFactoryByDSN(ctx context.Context, dsn string) (*storage_lock_factory.StorageLockFactory[*sql.DB], error)
func GetLockFactoryBySqlDB ¶
func GetLockFactoryBySqlDB(ctx context.Context, db *sql.DB) (*storage_lock_factory.StorageLockFactory[*sql.DB], error)
func NewLockByDSN ¶
func NewLockByDSN(ctx context.Context, dsn string, lockId string) (*storage_lock.StorageLock, error)
NewLockByDSN 从DSN创建锁
func NewLockByDSNWithOptions ¶
func NewLockByDSNWithOptions(ctx context.Context, dsn string, options *storage_lock.StorageLockOptions) (*storage_lock.StorageLock, error)
func NewLockBySqlDB ¶
func NewLockBySqlDB(ctx context.Context, db *sql.DB, lockId string) (*storage_lock.StorageLock, error)
func NewLockBySqlDBWithOptions ¶
func NewLockBySqlDBWithOptions(ctx context.Context, db *sql.DB, options *storage_lock.StorageLockOptions) (*storage_lock.StorageLock, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.