language

package
v0.0.0-...-524d49d Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: MIT Imports: 12 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 Feed

type Feed struct {
	FeedActorDID         string
	DefaultLookbackHours int32
	Store                *store.Store
}

func NewFeed

func NewFeed(ctx context.Context, feedActorDID 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