Documentation ¶
Index ¶
- type Scope
- func (s Scope) Add(ctx domain.RequestContext, l link.Link) (err error)
- func (s Scope) DeleteLink(ctx domain.RequestContext, id string) (rows int64, err error)
- func (s Scope) DeleteSourceDocumentLinks(ctx domain.RequestContext, documentID string) (rows int64, err error)
- func (s Scope) DeleteSourcePageLinks(ctx domain.RequestContext, pageID string) (rows int64, err error)
- func (s Scope) GetDocumentOutboundLinks(ctx domain.RequestContext, documentID string) (links []link.Link, err error)
- func (s Scope) GetPageLinks(ctx domain.RequestContext, documentID, pageID string) (links []link.Link, err error)
- func (s Scope) MarkOrphanAttachmentLink(ctx domain.RequestContext, attachmentID string) (err error)
- func (s Scope) MarkOrphanDocumentLink(ctx domain.RequestContext, documentID string) (err error)
- func (s Scope) MarkOrphanPageLink(ctx domain.RequestContext, pageID string) (err error)
- func (s Scope) SearchCandidates(ctx domain.RequestContext, keywords string) (docs []link.Candidate, pages []link.Candidate, attachments []link.Candidate, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scope ¶
Scope provides data access to MySQL.
func (Scope) Add ¶
Add inserts wiki-link into the store. These links exist when content references another document or content.
func (Scope) DeleteLink ¶
DeleteLink removes saved link from the store.
func (Scope) DeleteSourceDocumentLinks ¶
func (s Scope) DeleteSourceDocumentLinks(ctx domain.RequestContext, documentID string) (rows int64, err error)
DeleteSourceDocumentLinks removes saved links for given document.
func (Scope) DeleteSourcePageLinks ¶
func (s Scope) DeleteSourcePageLinks(ctx domain.RequestContext, pageID string) (rows int64, err error)
DeleteSourcePageLinks removes saved links for given source.
func (Scope) GetDocumentOutboundLinks ¶
func (s Scope) GetDocumentOutboundLinks(ctx domain.RequestContext, documentID string) (links []link.Link, err error)
GetDocumentOutboundLinks returns outbound links for specified document.
func (Scope) GetPageLinks ¶
func (s Scope) GetPageLinks(ctx domain.RequestContext, documentID, pageID string) (links []link.Link, err error)
GetPageLinks returns outbound links for specified page in document.
func (Scope) MarkOrphanAttachmentLink ¶
func (s Scope) MarkOrphanAttachmentLink(ctx domain.RequestContext, attachmentID string) (err error)
MarkOrphanAttachmentLink marks all link records referencing specified attachment.
func (Scope) MarkOrphanDocumentLink ¶
func (s Scope) MarkOrphanDocumentLink(ctx domain.RequestContext, documentID string) (err error)
MarkOrphanDocumentLink marks all link records referencing specified document.
func (Scope) MarkOrphanPageLink ¶
func (s Scope) MarkOrphanPageLink(ctx domain.RequestContext, pageID string) (err error)
MarkOrphanPageLink marks all link records referencing specified page.