예제 #1
0
func CreateEntry(entry *Entry) string {
	uid, _ := uuid.NewV4()
	id := uid.String()

	StoreEntry(id, entry)
	index.Index(id, entry.AsPlaintext())
	return id
}
예제 #2
0
func UpdateEntry(id string, entry *Entry) {
	StoreEntry(id, entry)
	index.Index(id, entry.AsPlaintext())
}