mysql_locks

package module
v0.0.0-...-e07b86d Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: MIT Imports: 6 Imported by: 0

README

MariaDB Locks

一、这是什么

基于MariaDB 实现的分布式锁。

二、安装依赖

go get -u github.com/storage-lock/go-mariadb-locks

三、API示例

TODO 2023-9-24 03:40:09

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMariadbLockFactoryByDsn

func GetMariadbLockFactoryByDsn(ctx context.Context, dsn string) (*storage_lock_factory.StorageLockFactory[*sql.DB], error)

func GetMariadbLockFactoryBySqlDb

func GetMariadbLockFactoryBySqlDb(ctx context.Context, db *sql.DB) (*storage_lock_factory.StorageLockFactory[*sql.DB], error)

func NewMariadbLockByDsn

func NewMariadbLockByDsn(ctx context.Context, dsn string, lockId string) (*storage_lock.StorageLock, error)

func NewMariadbLockByDsnWithOptions

func NewMariadbLockByDsnWithOptions(ctx context.Context, uri string, options *storage_lock.StorageLockOptions) (*storage_lock.StorageLock, error)

func NewMariadbLockBySqlDb

func NewMariadbLockBySqlDb(ctx context.Context, db *sql.DB, lockId string) (*storage_lock.StorageLock, error)

func NewMariadbLockBySqlDbWithOptions

func NewMariadbLockBySqlDbWithOptions(ctx context.Context, db *sql.DB, options *storage_lock.StorageLockOptions) (*storage_lock.StorageLock, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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