id_single

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdSingleHandler

type IdSingleHandler struct {
	*id_storage.IdStorage
	// contains filtered or unexported fields
}

func NewIdSingleHandler

func NewIdSingleHandler(dbService db.IService) (res *IdSingleHandler)

func (*IdSingleHandler) CacheId

func (this_ *IdSingleHandler) CacheId(ctx context.Context, idType module_id.IdType, id int64) error

func (*IdSingleHandler) Increment

func (this_ *IdSingleHandler) Increment(ctx context.Context, idType module_id.IdType, size int64) (int64, error)

func (*IdSingleHandler) PersistLock

func (this_ *IdSingleHandler) PersistLock(ctx context.Context, idType module_id.IdType) (unlocker module_id.Unlocker, err error)

func (*IdSingleHandler) RecoverLock

func (this_ *IdSingleHandler) RecoverLock(ctx context.Context, idType module_id.IdType) (unlocker module_id.Unlocker, err error)

func (*IdSingleHandler) ShouldCheckAndPersist

func (this_ *IdSingleHandler) ShouldCheckAndPersist() bool

Jump to

Keyboard shortcuts

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