Files
nostrlib/eventstore/bluge/helpers.go
2025-04-15 17:13:57 -03:00

25 lines
319 B
Go

package bluge
import (
"fiatjaf.com/nostr"
)
const (
contentField = "c"
kindField = "k"
createdAtField = "a"
pubkeyField = "p"
)
type eventIdentifier nostr.ID
const idField = "i"
func (id eventIdentifier) Field() string {
return idField
}
func (id eventIdentifier) Term() []byte {
return id[:]
}