Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion api/keyvalue/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,16 @@ import (
v1 "github.com/nitrictech/nitric/core/pkg/proto/kvstore/v1"
)

type ScanKeysOption = func(*v1.KvStoreScanKeysRequest)
type ScanKeysRequest = v1.KvStoreScanKeysRequest

type ScanKeysOption = func(*ScanKeysRequest)

// Apply a prefix to the scan keys request
func WithPrefix(prefix string) ScanKeysOption {
return func(req *ScanKeysRequest) {
req.Prefix = prefix
}
}

// TODO: maybe move keystream to separate file
type KeyStream struct {
Expand Down