MCPcopy Create free account
hub / github.com/FunctionStream/function-stream / NewTmpPebbleStateStore

Function NewTmpPebbleStateStore

fs/statestore/pebble.go:38–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36}
37
38func NewTmpPebbleStateStore() (api.StateStore, error) {
39 dir, err := os.MkdirTemp("", "")
40 if err != nil {
41 return nil, err
42 }
43 store, err := NewPebbleStateStore(&PebbleStateStoreConfig{DirName: dir}, slog.Default())
44 if err != nil {
45 return nil, err
46 }
47 return store, nil
48}
49
50func NewPebbleStateStore(config *PebbleStateStoreConfig, logger *slog.Logger) (*PebbleStateStore, error) {
51 log := logger.With(slog.String("component", "pebble-state-store"))

Callers 3

DefaultStateStoreLoaderFunction · 0.92
NewFunctionManagerFunction · 0.92
TestPebbleStateStoreFunction · 0.92

Calls 1

NewPebbleStateStoreFunction · 0.85

Tested by 1

TestPebbleStateStoreFunction · 0.74