MCPcopy Index your code
hub / github.com/FunctionStream/function-stream / FuncCtxImpl

Struct FuncCtxImpl

fs/func_ctx_impl.go:26–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24var ErrStateStoreNotLoaded = errors.New("state store not loaded")
25
26type 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
33func NewFuncCtxImpl(store api.StateStore) *FuncCtxImpl {
34 putStateFunc := func(key string, value []byte) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected