diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-04-20 17:11:27 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-04-23 22:22:50 +0200 |
commit | 625be77e083bf992ce81295fb875a664c68bcef3 (patch) | |
tree | f5f5dcf5ed47354306067d5232a4eb5b38e1ec54 /resources/page | |
parent | 097fd588ca2928056122991caaa879e835c5ba62 (diff) |
resources/page: Mark some more interface methods as internal
For the new documenttion.
Diffstat (limited to 'resources/page')
-rw-r--r-- | resources/page/page.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/resources/page/page.go b/resources/page/page.go index 007a2f954..3c58dbb66 100644 --- a/resources/page/page.go +++ b/resources/page/page.go @@ -184,6 +184,7 @@ type PageMetaProvider interface { Path() string // This is just a temporary bridge method. Use Path in templates. + // Pathc is for internal usage only. Pathc() string // The slug, typically defined in front matter. @@ -306,14 +307,20 @@ type RawContentProvider interface { // RefProvider provides the methods needed to create reflinks to pages. type RefProvider interface { Ref(argsm map[string]any) (string, error) + + // RefFrom is for internal use only. RefFrom(argsm map[string]any, source any) (string, error) + RelRef(argsm map[string]any) (string, error) + + // RefFrom is for internal use only. RelRefFrom(argsm map[string]any, source any) (string, error) } // RelatedKeywordsProvider allows a Page to be indexed. type RelatedKeywordsProvider interface { // Make it indexable as a related.Document + // RelatedKeywords is meant for internal usage only. RelatedKeywords(cfg related.IndexConfig) ([]related.Keyword, error) } |