Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DirectoryTemplate *template.Template DagTemplate *template.Template )
View Source
var AssetHash string
AssetHash a non-cryptographic hash of all embedded assets
Functions ¶
func HasDNSLinkOrigin ¶
helper to detect DNSLink website context (when hostname from gwURL is matching /ipns/<fqdn> in path)
Types ¶
type Breadcrumb ¶
func Breadcrumbs ¶
func Breadcrumbs(urlPath string, dnslinkOrigin bool) []Breadcrumb
type DagTemplateData ¶
type DirectoryItem ¶
type DirectoryTemplateData ¶
type DirectoryTemplateData struct {
GatewayURL string
DNSLink bool
Listing []DirectoryItem
Size string
Path string
Breadcrumbs []Breadcrumb
BackLink string
Hash string
}
Click to show internal directories.
Click to hide internal directories.