service

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize(ctx context.Context)

Types

type Type

type Type struct {
	// contains filtered or unexported fields
}
var Instance *Type

func NewService

func NewService(db *dao.Type) *Type

func (*Type) AcquireLock

func (s *Type) AcquireLock(ctx context.Context,
	name, ownerID string,
	duration time.Duration,
	isRenewal bool,
) (ok bool, err error)

func (*Type) LoadLockByName

func (s *Type) LoadLockByName(ctx context.Context,
	name string) (lock *model.Lock, err error)

Jump to

Keyboard shortcuts

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