cluster

package
v0.0.0-...-1eb5c16 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssembleCursor

func AssembleCursor(createdAt time.Time, actorDID string, rkey string) string

func ParseCursor

func ParseCursor(cursor string) (time.Time, string, string, error)

ParseCursor takes a cursor string and returns the created_at, actor_did, and rkey <created_at>:<actor_did>:<rkey>

Types

type ClusterFeed

type ClusterFeed struct {
	FeedActorDID         string
	PostRegistry         *search.PostRegistry
	DefaultLookbackHours int32
	Store                *store.Store
}

func NewClusterFeed

func NewClusterFeed(ctx context.Context, feedActorDID string, postRegistry *search.PostRegistry, store *store.Store) (*ClusterFeed, []string, error)

func (*ClusterFeed) Describe

func (*ClusterFeed) GetPage

func (cf *ClusterFeed) GetPage(ctx context.Context, feed string, userDID string, limit int64, cursor string) ([]*appbsky.FeedDefs_SkeletonFeedPost, *string, error)

type ErrInvalidCursor

type ErrInvalidCursor struct {
	// contains filtered or unexported fields
}

type NotFoundError

type NotFoundError struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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