Documentation
¶
Index ¶
- Variables
- type CommandResult
- type CreatePageParams
- type RenamePageParams
- type Service
- func (s *Service) Config() *appconfig.Resolved
- func (s *Service) CreatePage(ctx context.Context, params CreatePageParams) (*CommandResult, error)
- func (s *Service) DeletePage(ctx context.Context, slug string) (*CommandResult, error)
- func (s *Service) GetPage(ctx context.Context, slug string) (*CommandResult, error)
- func (s *Service) ListPages(ctx context.Context) (*CommandResult, error)
- func (s *Service) RenamePage(ctx context.Context, params RenamePageParams) (*CommandResult, error)
- func (s *Service) UpdatePage(ctx context.Context, params UpdatePageParams) (*CommandResult, error)
- type ServiceError
- type UpdatePageParams
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrSlugRequired = errors.New("slug is required") ErrTitleRequired = errors.New("title is required") ErrBodySourceConflict = errors.New("use either inline markdown or markdown file, not both") ErrNoUpdateFields = errors.New("no update fields were provided") ErrVisibilityInvalid = errors.New("visibility must be one of public, draft, or unlisted") ErrAuthIdentityRequired = errors.New("active identity is required") )
Functions ¶
This section is empty.
Types ¶
type CommandResult ¶
type CreatePageParams ¶
type RenamePageParams ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) CreatePage ¶
func (s *Service) CreatePage(ctx context.Context, params CreatePageParams) (*CommandResult, error)
func (*Service) DeletePage ¶
func (*Service) ListPages ¶
func (s *Service) ListPages(ctx context.Context) (*CommandResult, error)
func (*Service) RenamePage ¶
func (s *Service) RenamePage(ctx context.Context, params RenamePageParams) (*CommandResult, error)
func (*Service) UpdatePage ¶
func (s *Service) UpdatePage(ctx context.Context, params UpdatePageParams) (*CommandResult, error)
type ServiceError ¶
type ServiceError = identityServiceError
Click to show internal directories.
Click to hide internal directories.