Skip to content

Commit

Permalink
Add GetRevision()
Browse files Browse the repository at this point in the history
GetRevision returns a specific revision value for the key, or "KeyNotFound" if that message for this revision can't be found. See nats-io/nats.go#903
  • Loading branch information
kozlovic committed Feb 10, 2022
1 parent 7cfc439 commit a0313f8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions adr/ADR-8.md
Expand Up @@ -143,6 +143,9 @@ The interface here is a guide of what should function in read-only mode.
type RoKV interface {
// Get gets a key from the store
Get(key string) (Entry, error)

// GetRevision returns a specific revision value for the key
GetRevision(key string, revision uint64) (Entry, err error)

// History retrieves historic values for a key
History(ctx context.Context, key string) ([]Entry, error)
Expand Down

0 comments on commit a0313f8

Please sign in to comment.