generator

package
v0.0.0-...-e2aa0ca Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdGenerator

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

IdGenerator -

func NewIdGenerator

func NewIdGenerator(address storage.IAddress, class storage.IClass, cache *cache.Cache, state *storage.State) *IdGenerator

NewIdGenerator -

func (*IdGenerator) Init

func (gen *IdGenerator) Init()

Init -

func (*IdGenerator) NextAddressId

func (gen *IdGenerator) NextAddressId() uint64

NextAddressId -

func (*IdGenerator) NextClassId

func (gen *IdGenerator) NextClassId() uint64

NextClassId -

func (*IdGenerator) NextEventId

func (gen *IdGenerator) NextEventId() uint64

NextEventId -

func (*IdGenerator) NextTxId

func (gen *IdGenerator) NextTxId() uint64

NextTxId -

func (*IdGenerator) SetAddressId

func (gen *IdGenerator) SetAddressId(ctx context.Context, address *storage.Address) (bool, error)

SetAddressId -

func (*IdGenerator) SetClassId

func (gen *IdGenerator) SetClassId(ctx context.Context, class *storage.Class) (bool, error)

SetClassId -

Jump to

Keyboard shortcuts

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