locker

package
v1.0.4-gitspaces-beta Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WireSet = wire.NewSet(
	ProvideLocker,
)

Functions

This section is empty.

Types

type Locker

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

func NewLocker

func NewLocker(mtxManager lock.MutexManager) *Locker

func ProvideLocker

func ProvideLocker(mtxManager lock.MutexManager) *Locker

func (Locker) LockDefaultBranch

func (l Locker) LockDefaultBranch(
	ctx context.Context,
	repoID int64,
	branchName string,
	expiry time.Duration,
) (func(), error)

func (Locker) LockPR

func (l Locker) LockPR(
	ctx context.Context,
	repoID int64,
	prNum int64,
	expiry time.Duration,
) (func(), error)

Jump to

Keyboard shortcuts

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