followersexp

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: 16 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 ErrInvalidCursor

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

type FollowersFeed

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

func NewFollowersFeed

func NewFollowersFeed(ctx context.Context, feedActorDID string, gClient *graphdclient.Client, rClient *redis.Client, shardDB *sharddb.ShardDB, store *store.Store) (*FollowersFeed, []string, error)

func (*FollowersFeed) Describe

func (*FollowersFeed) GetPage

func (f *FollowersFeed) 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