mutex

package
v0.1.20 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithMutexErr

func WithMutexErr(err error) error

Types

type Lock added in v0.1.14

type Lock interface {
	Release(ctx context.Context) error
}

type Mutex

type Mutex interface {
	Lock(ctx context.Context, sagaId string) (Lock, error)
}

func NewSqlMutex

func NewSqlMutex(db *sagaSql.DB, driver saga.SQLDriver, logger log.Logger) Mutex

type MutexErr

type MutexErr struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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