mongodb_locks

package module
v0.0.0-...-126a7bc Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: MIT Imports: 5 Imported by: 0

README

MongoDB Locks

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMongoLockByClient

func NewMongoLockByClient(ctx context.Context, client *mongo.Client, lockId string) (*storage_lock.StorageLock, error)

func NewMongoLockByClientWithOptions

func NewMongoLockByClientWithOptions(ctx context.Context, client *mongo.Client, options *storage_lock.StorageLockOptions) (*storage_lock.StorageLock, error)

func NewMongoLockByUri

func NewMongoLockByUri(ctx context.Context, uri string, lockId string) (*storage_lock.StorageLock, error)

func NewMongoLockByUriWithOptions

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

Types

This section is empty.

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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