ekster/pkg/timeline/null.go
Peter Stuifzand d2fc2ecd3c
All checks were successful
continuous-integration/drone/push Build is passing
Added boolean to show when item was added to channel
2019-08-17 16:55:59 +02:00

28 lines
554 B
Go

package timeline
import "p83.nl/go/ekster/pkg/microsub"
type nullTimeline struct {
channel string
}
func (timeline *nullTimeline) Init() error {
return nil
}
func (timeline *nullTimeline) Items(before, after string) (microsub.Timeline, error) {
return microsub.Timeline{Items: []microsub.Item{}}, nil
}
func (timeline *nullTimeline) AddItem(item microsub.Item) (bool, error) {
return false, nil
}
func (timeline *nullTimeline) Count() (int, error) {
return 0, nil
}
func (timeline *nullTimeline) MarkRead(uids []string) error {
return nil
}