Drop WithCreatedAtTime, WithSinceTime, WithUntilTime; nil Tags on NewEvent

This commit is contained in:
Jay
2026-05-22 11:32:55 -04:00
parent c6145d6020
commit 0ca44c7e20
4 changed files with 7 additions and 26 deletions
-15
View File
@@ -4,7 +4,6 @@ import (
"encoding/json"
"git.wisehodl.dev/jay/go-roots/events"
"strings"
"time"
)
// TagFilters maps tag names to arrays of values for tag-based filtering
@@ -70,20 +69,6 @@ func WithUntil(until int64) FilterOption {
}
}
func WithUntilTime(until time.Time) FilterOption {
return func(f *Filter) {
untilInt := until.Unix()
f.Until = &untilInt
}
}
func WithSinceTime(since time.Time) FilterOption {
return func(f *Filter) {
sinceInt := since.Unix()
f.Since = &sinceInt
}
}
func WithLimit(limit int) FilterOption {
return func(f *Filter) {
ptr := limit