Skip to content

Commit

Permalink
Update StableStore documentation based on #29
Browse files Browse the repository at this point in the history
  • Loading branch information
stapelberg committed Jan 18, 2015
1 parent febcccb commit 87ccd78
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions stable.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ package raft
// of key configurations to ensure safety.
type StableStore interface {
Set(key []byte, val []byte) error

// Get returns the value for key, or an empty byte slice if key was not found.
Get(key []byte) ([]byte, error)

SetUint64(key []byte, val uint64) error

// GetUint64 returns the uint64 value for key, or 0 if key was not found.
GetUint64(key []byte) (uint64, error)
}

0 comments on commit 87ccd78

Please sign in to comment.