Drop WithCreatedAtTime, WithSinceTime, WithUntilTime; nil Tags on NewEvent
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user