Skip to content

Commit

Permalink
[core] refs fibercrypto#142 - Document core interfaces
Browse files Browse the repository at this point in the history
- KeyValueStorage
- PasswordReader
  • Loading branch information
olemis committed Sep 30, 2019
1 parent 9f24cb9 commit 965a7fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/core/storage.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package core

// KeyValueStorage provides read / write access to values given a key
type KeyValueStorage interface {
GetValue(key string) interface{}
}
1 change: 1 addition & 0 deletions src/core/textutil.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package core

// PasswordReadeer secure retrieval of passwords from users
type PasswordReader func(message string) (string, error)

0 comments on commit 965a7fc

Please sign in to comment.