| 24 | var ErrStateStoreNotLoaded = errors.New("state store not loaded") |
| 25 | |
| 26 | type FuncCtxImpl struct { |
| 27 | api.FunctionContext |
| 28 | store api.StateStore |
| 29 | putStateFunc func(key string, value []byte) error |
| 30 | getStateFunc func(key string) ([]byte, error) |
| 31 | } |
| 32 | |
| 33 | func NewFuncCtxImpl(store api.StateStore) *FuncCtxImpl { |
| 34 | putStateFunc := func(key string, value []byte) error { |
nothing calls this directly
no outgoing calls
no test coverage detected