concurrency

package
v1.1.1-0...-66c8b0b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeModel

func InitializeModel(db *gorm.DB) error

Types

type Lock

type Lock struct {
	Id      string
	Expires time.Time
	// contains filtered or unexported fields
}

func (*Lock) Unlock

func (l *Lock) Unlock()

type LocksService

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

func NewService

func NewService(db *gorm.DB) LocksService

func (*LocksService) Lock

func (ls *LocksService) Lock(id string, howLong time.Duration) (Lock, error)

Jump to

Keyboard shortcuts

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