inccounter

package
v1.3.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VarNumRepeats = "numRepeats"
	VarCounter    = "counter"
	VarName       = "name"
)

Variables

View Source
var (
	FuncIncCounter              = coreutil.Func("incCounter")
	FuncIncAndRepeatOnceAfter2s = coreutil.Func("incAndRepeatOnceAfter5s")
	FuncIncAndRepeatMany        = coreutil.Func("incAndRepeatMany")
	FuncSpawn                   = coreutil.Func("spawn")
	ViewGetCounter              = coreutil.ViewFunc("getCounter")
)
View Source
var Contract = coreutil.NewContract("inccounter")
View Source
var Processor = Contract.Processor(initialize,
	FuncIncCounter.WithHandler(incCounter),
	FuncIncAndRepeatOnceAfter2s.WithHandler(incCounterAndRepeatOnce),
	FuncIncAndRepeatMany.WithHandler(incCounterAndRepeatMany),
	FuncSpawn.WithHandler(spawn),
	ViewGetCounter.WithHandler(getCounter),
)

Functions

This section is empty.

Types

type StateAccess added in v1.0.3

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

func NewStateAccess added in v1.0.3

func NewStateAccess(store kv.KVStoreReader) *StateAccess

func (*StateAccess) GetCounter added in v1.0.3

func (sa *StateAccess) GetCounter() int64

Jump to

Keyboard shortcuts

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