Documentation ¶
Index ¶
- func GetMongoLockFactoryByClient(ctx context.Context, client *mongo.Client) (*storage_lock_factory.StorageLockFactory[*mongo.Client], error)
- func GetMongoLockFactoryByUri(ctx context.Context, uri string) (*storage_lock_factory.StorageLockFactory[*mongo.Client], error)
- func NewMongoLockByClient(ctx context.Context, client *mongo.Client, lockId string) (*storage_lock.StorageLock, error)
- func NewMongoLockByClientWithOptions(ctx context.Context, client *mongo.Client, ...) (*storage_lock.StorageLock, error)
- func NewMongoLockByUri(ctx context.Context, uri string, lockId string) (*storage_lock.StorageLock, error)
- func NewMongoLockByUriWithOptions(ctx context.Context, uri string, options *storage_lock.StorageLockOptions) (*storage_lock.StorageLock, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMongoLockFactoryByClient ¶
func GetMongoLockFactoryByClient(ctx context.Context, client *mongo.Client) (*storage_lock_factory.StorageLockFactory[*mongo.Client], error)
func GetMongoLockFactoryByUri ¶
func GetMongoLockFactoryByUri(ctx context.Context, uri string) (*storage_lock_factory.StorageLockFactory[*mongo.Client], error)
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.
Click to show internal directories.
Click to hide internal directories.