lock

package
v2.0.0-...-4b7107c Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: MIT Imports: 7 Imported by: 0

README

Lock

Description

Simple file and in-memory locks,etc.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
}

File - a structure for a lock file.

func (*File) Check

func (lock *File) Check(contextId string) error

Check - check to see if the lock file for contextId exists

func (*File) Create

func (lock *File) Create() (contextId string, err error)

Create - create a lock file for the contextId

func (*File) Free

func (lock *File) Free(contextId string) error

Free - delete the lock file for contextId

Jump to

Keyboard shortcuts

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