Documentation ¶
Overview ¶
Package post provides APIs for managing posts within a thread.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service interface { // Create a new thread in the specified category. Create( ctx context.Context, body string, authorID account.AccountID, parentID post.PostID, replyToID optional.Optional[post.PostID], ) (*post.Post, error) }
func New ¶
func New( l *zap.Logger, rbac *restrict.AccessManager, account_repo account.Repository, post_repo post.Repository, ) Service
Click to show internal directories.
Click to hide internal directories.