timeline

package
v0.17.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2024 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

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 New

func New(state *state.State, converter *typeutils.Converter, visFilter *visibility.Filter) Processor

func (*Processor) FavedTimelineGet

func (p *Processor) FavedTimelineGet(ctx context.Context, authed *oauth.Auth, maxID string, minID string, limit int) (*apimodel.PageableResponse, gtserror.WithCode)

func (*Processor) HomeTimelineGet

func (p *Processor) HomeTimelineGet(ctx context.Context, authed *oauth.Auth, maxID string, sinceID string, minID string, limit int, local bool) (*apimodel.PageableResponse, gtserror.WithCode)

func (*Processor) ListTimelineGet

func (p *Processor) ListTimelineGet(ctx context.Context, authed *oauth.Auth, listID string, maxID string, sinceID string, minID string, limit int) (*apimodel.PageableResponse, gtserror.WithCode)

func (*Processor) NotificationGet

func (p *Processor) NotificationGet(ctx context.Context, account *gtsmodel.Account, targetNotifID string) (*apimodel.Notification, gtserror.WithCode)

func (*Processor) NotificationsClear

func (p *Processor) NotificationsClear(ctx context.Context, authed *oauth.Auth) gtserror.WithCode

func (*Processor) NotificationsGet

func (p *Processor) NotificationsGet(
	ctx context.Context,
	authed *oauth.Auth,
	maxID string,
	sinceID string,
	minID string,
	limit int,
	types []string,
	excludeTypes []string,
) (*apimodel.PageableResponse, gtserror.WithCode)

func (*Processor) PublicTimelineGet

func (p *Processor) PublicTimelineGet(
	ctx context.Context,
	requester *gtsmodel.Account,
	maxID string,
	sinceID string,
	minID string,
	limit int,
	local bool,
) (*apimodel.PageableResponse, gtserror.WithCode)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL