Something went wrong. Try again.
A tool for managing custom bluesky feeds
Something went wrong. Try again.
550 B · 31 lines
Go
at main
1234567891011121314151617181920212223242526272829303132package feeds
import ( "context" "errors")
var ErrInvalidCursor = errors.New("invalid cursor format")
type Feed struct { Avatar []byte ID string DisplayName string Description string SelectionFunc func(ctx context.Context, req *FeedRequest) (FeedSkeletonResponse, error)}
type FeedRequest struct { Lang string Cursor string Limit int32}
type FeedResponse struct { Post string `json:"post"`}
type FeedSkeletonResponse struct { Cursor string `json:"cursor"` Feed []FeedResponse `json:"feed"`}