lock

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2020 License: ISC Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lock

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

func New

func New() *Lock

New - create lock object

func (*Lock) IsLockedID

func (l *Lock) IsLockedID(keyID string) bool

func (*Lock) Lock

func (l *Lock) Lock(servable app.ServableID) error

Lock - setting lock on team/project/name item or returns error if item is already locked

func (*Lock) LockID

func (l *Lock) LockID(id string) error

func (*Lock) UnLock

func (l *Lock) UnLock(servable app.ServableID)

UnLock - remove lock from team/project/name item

func (*Lock) UnLockID

func (l *Lock) UnLockID(id string)

Jump to

Keyboard shortcuts

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