Documentation
¶
Index ¶
- func GetMysqlLockFactoryByDsn(ctx context.Context, uri string) (*storage_lock_factory.StorageLockFactory[*sql.DB], error)
- func GetMysqlLockFactoryBySqlDb(ctx context.Context, db *sql.DB) (*storage_lock_factory.StorageLockFactory[*sql.DB], error)
- func NewMysqlLockByDsn(ctx context.Context, dsn string, lockId string) (*storage_lock.StorageLock, error)
- func NewMysqlLockByDsnWithOptions(ctx context.Context, uri string, options *storage_lock.StorageLockOptions) (*storage_lock.StorageLock, error)
- func NewMysqlLockBySqlDb(ctx context.Context, db *sql.DB, lockId string) (*storage_lock.StorageLock, error)
- func NewMysqlLockBySqlDbWithOptions(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 GetMysqlLockFactoryByDsn ¶
func GetMysqlLockFactoryByDsn(ctx context.Context, uri string) (*storage_lock_factory.StorageLockFactory[*sql.DB], error)
func GetMysqlLockFactoryBySqlDb ¶
func GetMysqlLockFactoryBySqlDb(ctx context.Context, db *sql.DB) (*storage_lock_factory.StorageLockFactory[*sql.DB], error)
func NewMysqlLockByDsn ¶
func NewMysqlLockByDsn(ctx context.Context, dsn string, lockId string) (*storage_lock.StorageLock, error)
func NewMysqlLockByDsnWithOptions ¶
func NewMysqlLockByDsnWithOptions(ctx context.Context, uri string, options *storage_lock.StorageLockOptions) (*storage_lock.StorageLock, error)
func NewMysqlLockBySqlDb ¶
func NewMysqlLockBySqlDb(ctx context.Context, db *sql.DB, lockId string) (*storage_lock.StorageLock, error)
func NewMysqlLockBySqlDbWithOptions ¶
func NewMysqlLockBySqlDbWithOptions(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.