Reog and implement sqlite
This commit is contained in:
parent
30cdf2c7e7
commit
61aa1be730
9 changed files with 223 additions and 76 deletions
15
keydirectory/key_ids.go
Normal file
15
keydirectory/key_ids.go
Normal file
|
@ -0,0 +1,15 @@
|
|||
package keydirectory
|
||||
|
||||
import "github.com/google/uuid"
|
||||
|
||||
func generateKeyId() (string, error) {
|
||||
uuid, err := uuid.NewRandom()
|
||||
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
keyId := uuid.String()
|
||||
|
||||
return keyId, nil
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue