followers

package
v0.0.0-...-df8e803 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrStartingUp = fmt.Errorf("feed is starting up")

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 ErrInvalidCursor

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

type Feed

type Feed struct {
	FeedActorDID string
	GraphD       *graphdclient.Client
	Redis        *redis.Client
	ShardDB      *sharddb.ShardDB
	Store        *store.Store
	// contains filtered or unexported fields
}

func NewFeed

func NewFeed(ctx context.Context, feedActorDID string, gClient *graphdclient.Client, rClient *redis.Client, shardDBNodes []string, store *store.Store) (*Feed, []string, error)

func (*Feed) Describe

func (*Feed) GetPage

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

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