package 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"` }