package
2.1.5+incompatible
Repository: https://github.com/nomkhonwaan/myblog.git
Documentation: pkg.go.dev

# Packages

Package mock_blog is a generated GoMock package.

# Functions

NewCategoryRepository returns a MongoCategoryRepository instance.
NewPostQueryBuilder returns a query builder for building post query object.
NewPostRepository returns a MongoPostRepository instance.
NewTagRepository returns a MongoTagRepository instance.

# Constants

StatusDraft indicates that the post is private, can only be accessed by the author.
StatusPublished indicates that post is public, accessible to everyone.

# Structs

Category is a group of posts regarded as having particular shared characteristics.
Engagement represents social network engagement of the object.
MongoCategoryRepository implements CategoryRepository interface.
MongoPostRepository implements PostRepository interface.
MongoTagRepository implements TagRepository interface.
Post
Post is a piece of content in the blog platform.
PostQuery uses as medium for communicating between repository and data-access object (DAO).
PostQueryBuilder a post object specific query builder.
Tag is a label attached to the post for the purpose of identification.

# Interfaces

A CategoryRepository interface.
A PostRepository interface.
A TagRepository interface.

# Type aliases

Status for indicating the access level of the post.