orchestration

package
v0.5.0-beta.5 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrRecursiveWrite = errors.New("recursive runtime write is not allowed")

Functions

This section is empty.

Types

type AutosaveRequest

type AutosaveRequest struct {
	ContentID int64
	AuthorID  int64
	Input     services.SaveContentInput
}

type AutosaveResult

type AutosaveResult struct {
	ContentID int64
	PreviewID int64
	Content   models.Content
}

type CommentSaveRequest

type CommentSaveRequest struct {
	ID        int64
	Operation string
	Input     services.SaveCommentInput
	Content   any
}

func CommentInputFromPlugin

func CommentInputFromPlugin(input plugin.CommentWriteInput) CommentSaveRequest

type ContentSaveRequest

type ContentSaveRequest struct {
	ID          int64
	PublishedID int64
	AuthorID    int64
	Operation   string
	Input       services.SaveContentInput
}

func ContentInputFromPlugin

func ContentInputFromPlugin(input plugin.ContentWriteInput) ContentSaveRequest

type PluginManager

type PluginManager interface {
	ApplyActive(context.Context, string, any) (any, error)
}

type Writer

type Writer struct {
	Contents          *services.ContentService
	Comments          *services.CommentService
	Plugins           PluginManager
	DeleteContentData func(context.Context, int64) error
}

func (*Writer) DeleteComment

func (w *Writer) DeleteComment(ctx context.Context, id int64) error

func (*Writer) DeleteContent

func (w *Writer) DeleteContent(ctx context.Context, id int64) error

func (*Writer) SaveAutosave

func (w *Writer) SaveAutosave(ctx context.Context, req AutosaveRequest) (AutosaveResult, error)

func (*Writer) SaveComment

func (*Writer) SaveContent

Jump to

Keyboard shortcuts

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