bring in khatru and eventstore.
This commit is contained in:
23
eventstore/bluge/helpers.go
Normal file
23
eventstore/bluge/helpers.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package bluge
|
||||
|
||||
import "encoding/hex"
|
||||
|
||||
const (
|
||||
contentField = "c"
|
||||
kindField = "k"
|
||||
createdAtField = "a"
|
||||
pubkeyField = "p"
|
||||
)
|
||||
|
||||
type eventIdentifier string
|
||||
|
||||
const idField = "i"
|
||||
|
||||
func (id eventIdentifier) Field() string {
|
||||
return idField
|
||||
}
|
||||
|
||||
func (id eventIdentifier) Term() []byte {
|
||||
v, _ := hex.DecodeString(string(id))
|
||||
return v
|
||||
}
|
||||
Reference in New Issue
Block a user