Documentation ¶
Index ¶
- func HomeTimelineFilter(state *state.State, visFilter *visibility.Filter) timeline.FilterFunction
- func HomeTimelineGrab(state *state.State) timeline.GrabFunction
- func HomeTimelineStatusPrepare(state *state.State, converter *typeutils.Converter) timeline.PrepareFunction
- func ListTimelineFilter(state *state.State, visFilter *visibility.Filter) timeline.FilterFunction
- func ListTimelineGrab(state *state.State) timeline.GrabFunction
- func ListTimelineStatusPrepare(state *state.State, converter *typeutils.Converter) timeline.PrepareFunction
- func SkipInsert() timeline.SkipInsertFunction
- type Processor
- func (p *Processor) FavedTimelineGet(ctx context.Context, authed *oauth.Auth, maxID string, minID string, limit int) (*apimodel.PageableResponse, gtserror.WithCode)
- func (p *Processor) HomeTimelineGet(ctx context.Context, authed *oauth.Auth, maxID string, sinceID string, ...) (*apimodel.PageableResponse, gtserror.WithCode)
- func (p *Processor) ListTimelineGet(ctx context.Context, authed *oauth.Auth, listID string, maxID string, ...) (*apimodel.PageableResponse, gtserror.WithCode)
- func (p *Processor) NotificationGet(ctx context.Context, account *gtsmodel.Account, targetNotifID string) (*apimodel.Notification, gtserror.WithCode)
- func (p *Processor) NotificationsClear(ctx context.Context, authed *oauth.Auth) gtserror.WithCode
- func (p *Processor) NotificationsGet(ctx context.Context, authed *oauth.Auth, maxID string, sinceID string, ...) (*apimodel.PageableResponse, gtserror.WithCode)
- func (p *Processor) PublicTimelineGet(ctx context.Context, requester *gtsmodel.Account, maxID string, sinceID string, ...) (*apimodel.PageableResponse, gtserror.WithCode)
- func (p *Processor) TagTimelineGet(ctx context.Context, requestingAcct *gtsmodel.Account, tagName string, ...) (*apimodel.PageableResponse, gtserror.WithCode)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HomeTimelineFilter ¶
func HomeTimelineFilter(state *state.State, visFilter *visibility.Filter) timeline.FilterFunction
HomeTimelineFilter returns a function that satisfies FilterFunction for home timelines.
func HomeTimelineGrab ¶
func HomeTimelineGrab(state *state.State) timeline.GrabFunction
HomeTimelineGrab returns a function that satisfies GrabFunction for home timelines.
func HomeTimelineStatusPrepare ¶
func HomeTimelineStatusPrepare(state *state.State, converter *typeutils.Converter) timeline.PrepareFunction
HomeTimelineStatusPrepare returns a function that satisfies PrepareFunction for home timelines.
func ListTimelineFilter ¶
func ListTimelineFilter(state *state.State, visFilter *visibility.Filter) timeline.FilterFunction
ListTimelineFilter returns a function that satisfies FilterFunction for list timelines.
func ListTimelineGrab ¶
func ListTimelineGrab(state *state.State) timeline.GrabFunction
ListTimelineGrab returns a function that satisfies GrabFunction for list timelines.
func ListTimelineStatusPrepare ¶
func ListTimelineStatusPrepare(state *state.State, converter *typeutils.Converter) timeline.PrepareFunction
ListTimelineStatusPrepare returns a function that satisfies PrepareFunction for list timelines.
func SkipInsert ¶
func SkipInsert() timeline.SkipInsertFunction
SkipInsert returns a function that satisifes SkipInsertFunction.
Types ¶
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
func (*Processor) FavedTimelineGet ¶
func (*Processor) HomeTimelineGet ¶
func (*Processor) ListTimelineGet ¶
func (*Processor) NotificationGet ¶
func (*Processor) NotificationsClear ¶
func (*Processor) NotificationsGet ¶
func (*Processor) PublicTimelineGet ¶
func (*Processor) TagTimelineGet ¶ added in v0.11.0
func (p *Processor) TagTimelineGet( ctx context.Context, requestingAcct *gtsmodel.Account, tagName string, maxID string, sinceID string, minID string, limit int, ) (*apimodel.PageableResponse, gtserror.WithCode)
TagTimelineGet gets a pageable timeline for the given tagName and given paging parameters. It will ensure that each status in the timeline is actually visible to requestingAcct before returning it.