Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProgressMessage ¶ added in v0.0.2
ProgressMessage is returned by the viewer when the progress is not available
type RenderFlags ¶
type RenderFlags struct { PublicURL string Predicates sparkl.Predicates StrictCSP bool // use strict content-security-policy for images and media by only allowing content from public uris HTMLRender bool ImageRender bool // Stats holds the status to use for logging Stats *stats.Stats }
func (RenderFlags) CSPHeader ¶
func (rf RenderFlags) CSPHeader() string
CSPHeader returns the CSPHeader to be included in viewer responses
func (RenderFlags) PublicURIS ¶
func (rf RenderFlags) PublicURIS() (public []string)
type Viewer ¶
type Viewer struct { Stats *stats.Stats // Stats holds the current stats of the viewer Cache *sparkl.Cache Pathbuilder *pathbuilder.Pathbuilder RenderFlags RenderFlags // contains filtered or unexported fields }
Viewer implements an http.Handler that displays WissKI Entities.
func (*Viewer) Prepare ¶
func (viewer *Viewer) Prepare(cache *sparkl.Cache, pb *pathbuilder.Pathbuilder)
Click to show internal directories.
Click to hide internal directories.