wikiservice

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Version

type Version struct {
	Number  uint64
	Creator service.UserProfile
	Date    string
}

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
}

Jump to

Keyboard shortcuts

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