viewer

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2023 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RenderFlags

type RenderFlags struct {
	HTMLRender  bool // should we render "text_long" as actual html?
	ImageRender bool // should we render "image" as actual images

	PublicURL string // should we replace links from the provided wisski?

	Predicates sparkl.Predicates
}

func (RenderFlags) PublicURIS

func (rf RenderFlags) PublicURIS() (public []string)

type Viewer

type Viewer struct {
	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()

func (*Viewer) ServeHTTP

func (viewer *Viewer) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL