post

package
v0.0.0-...-8495beb Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package post provides APIs for managing posts within a thread.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build() fx.Option

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

Jump to

Keyboard shortcuts

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