Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WikiContent ¶
type WikiContent struct { Version uint64 Markdown string // contains filtered or unexported fields }
func (*WikiContent) GetBody ¶
func (content *WikiContent) GetBody(ctx context.Context, markdownService markdownimpl.MarkdownService) (string, error)
Lazy loading for markdown application on body.
type WikiService ¶
type WikiService interface { LoadContent(ctx context.Context, userId uint64, lang string, title string, version string) (*WikiContent, error) StoreContent(ctx context.Context, userId uint64, lang string, title string, last string, markdown string) error GetVersions(ctx context.Context, userId uint64, lang string, title string) ([]Version, error) DeleteContent(ctx context.Context, userId uint64, lang string, title string, version string) error DeleteRight(ctx context.Context, userId uint64) bool }
Click to show internal directories.
Click to hide internal directories.