Documentation
¶
Index ¶
- Variables
- type CommandResult
- type CreatePageParams
- type RenamePageParams
- type Service
- func (s *Service) CreatePage(ctx context.Context, params CreatePageParams) (*CommandResult, error)
- func (s *Service) DeletePage(ctx context.Context, domain, slug string) (*CommandResult, error)
- func (s *Service) GetPage(ctx context.Context, domain, slug string) (*CommandResult, error)
- func (s *Service) GetRoot(ctx context.Context, domain string) (*CommandResult, error)
- func (s *Service) ListPages(ctx context.Context, domain string) (*CommandResult, error)
- func (s *Service) RenamePage(ctx context.Context, params RenamePageParams) (*CommandResult, error)
- func (s *Service) SetRoot(ctx context.Context, params SetRootParams) (*CommandResult, error)
- func (s *Service) UpdatePage(ctx context.Context, params UpdatePageParams) (*CommandResult, error)
- type ServiceError
- type SetRootParams
- type UpdatePageParams
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 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) 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 UpdatePageParams ¶
Click to show internal directories.
Click to hide internal directories.