Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrPostNotFound = errors.New("post not found")
)
Common errors
Functions ¶
This section is empty.
Types ¶
type PostProvider ¶
type PostProvider interface { Get(ctx context.Context, postReferenceID, userReferenceID string) (*dto.Post, error) GetProfileFeed(ctx context.Context, username string, userReferenceID uuid.UUID) ([]*dto.FeedItem, error) }
PostProvider is used to read post data.
func NewPostProvider ¶
func NewPostProvider(db database.Database) PostProvider
NewPostProvider returns a new instance of PostProvider.
Click to show internal directories.
Click to hide internal directories.