Documentation ¶
Index ¶
- type IdGenerator
- func (gen *IdGenerator) Init()
- func (gen *IdGenerator) NextAddressId() uint64
- func (gen *IdGenerator) NextClassId() uint64
- func (gen *IdGenerator) NextEventId() uint64
- func (gen *IdGenerator) NextTxId() uint64
- func (gen *IdGenerator) SetAddressId(ctx context.Context, address *storage.Address) (bool, error)
- func (gen *IdGenerator) SetClassId(ctx context.Context, class *storage.Class) (bool, error)
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) SetAddressId ¶
SetAddressId -
func (*IdGenerator) SetClassId ¶
SetClassId -
Click to show internal directories.
Click to hide internal directories.