site

package
v1.0.16 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDomainRequired       = errors.New("domain is required")
	ErrSlugRequired         = errors.New("slug is required")
	ErrNoBodySourceProvided = errors.New("provide either inline markdown or markdown file")
	ErrBodySourceConflict   = errors.New("use either inline markdown or markdown file, not both")
)

Functions

This section is empty.

Types

type CommandResult

type CommandResult struct {
	Data     map[string]any
	Summary  string
	Warnings []string
}

type CreatePageParams

type CreatePageParams struct {
	Domain string
	Slug   string
	Body   string
}

type RenamePageParams

type RenamePageParams struct {
	Domain string
	Slug   string
	To     string
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(resolved *appconfig.Resolved) (*Service, error)

func (*Service) CreatePage

func (s *Service) CreatePage(ctx context.Context, params CreatePageParams) (*CommandResult, error)

func (*Service) DeletePage

func (s *Service) DeletePage(ctx context.Context, domain, slug string) (*CommandResult, error)

func (*Service) GetPage

func (s *Service) GetPage(ctx context.Context, domain, slug string) (*CommandResult, error)

func (*Service) GetRoot

func (s *Service) GetRoot(ctx context.Context, domain string) (*CommandResult, error)

func (*Service) ListPages

func (s *Service) ListPages(ctx context.Context, domain string) (*CommandResult, error)

func (*Service) RenamePage

func (s *Service) RenamePage(ctx context.Context, params RenamePageParams) (*CommandResult, error)

func (*Service) SetRoot

func (s *Service) SetRoot(ctx context.Context, params SetRootParams) (*CommandResult, error)

func (*Service) UpdatePage

func (s *Service) UpdatePage(ctx context.Context, params UpdatePageParams) (*CommandResult, error)

type ServiceError

type ServiceError = identityServiceError

type SetRootParams

type SetRootParams struct {
	Domain string
	Body   string
}

type UpdatePageParams

type UpdatePageParams struct {
	Domain string
	Slug   string
	Body   string
}

Jump to

Keyboard shortcuts

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