Skip to content

Commit

Permalink
docs: Add Config struct to mockstorage package signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
sixcolors committed Jun 4, 2024
1 parent 58d9dd4 commit 0fd13ff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mockstorage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ type Entry struct {
Exp time.Time
}

type Config struct {
CustomFuncs *CustomFuncs
}

type CustomFuncs struct {
GetFunc func(key string) ([]byte, error)
SetFunc func(key string, val []byte, exp time.Duration) error
Expand Down

0 comments on commit 0fd13ff

Please sign in to comment.