provider

package
v0.0.0-...-36feab7 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2021 License: MIT Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL