admin: Add link to forge
This commit is contained in:
parent
80917ae436
commit
2c76b5c7a3
7 changed files with 129 additions and 3 deletions
|
@ -6,6 +6,7 @@ import (
|
|||
"encoding/base32"
|
||||
"fmt"
|
||||
"io"
|
||||
"net/url"
|
||||
"os"
|
||||
"path"
|
||||
"strings"
|
||||
|
@ -46,6 +47,12 @@ type DirectAccessImporter interface {
|
|||
GetLocalPath(p ...string) string
|
||||
}
|
||||
|
||||
// ForgeLinkedImporter abstracts importer that are linked to a forge
|
||||
type ForgeLinkedImporter interface {
|
||||
GetThemeLink(th *fic.Theme) (*url.URL, error)
|
||||
GetExerciceLink(e *fic.Exercice) (*url.URL, error)
|
||||
}
|
||||
|
||||
// GlobalImporter stores the main importer instance to use for global imports.
|
||||
var GlobalImporter Importer
|
||||
|
||||
|
|
Reference in a new issue