Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resolver ¶
type Resolver interface {
Resolve(page *model.ConfluencePage, filename string, revision int) (string, error)
DownloadAttachment(page *model.ConfluencePage, filename string, revision int) (*model.ConfluenceAttachment, []byte, error)
}
Resolver provides attachment content for macros such as mermaid.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service implements Resolver using a Confluence content downloader.
func NewService ¶
func NewService(client confluence.Client) *Service
NewService constructs a new attachment service.
func (*Service) DownloadAttachment ¶
func (s *Service) DownloadAttachment(page *model.ConfluencePage, filename string, revision int) (*model.ConfluenceAttachment, []byte, error)
DownloadAttachment retrieves attachment bytes for the given filename and optional revision.
Click to show internal directories.
Click to hide internal directories.