glass

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

Package glass provides Glass

Index

Constants

View Source
const GlassVersion = 2

Variables

This section is empty.

Functions

func Export

func Export(path string, drincw Glass, st *stats.Stats) (err error)

Export writes a glass to the given path

Types

type Glass

type Glass struct {
	Pathbuilder pathbuilder.Pathbuilder
	Cache       *sparkl.Cache
	Flags       viewer.RenderFlags
}

Glass represents a stand-alone representation of a WissKI

func Create

func Create(pathbuilderPath string, nquadsPath string, cacheDir string, flags viewer.RenderFlags, st *stats.Stats) (drincw Glass, err error)

Create creates a new glass from the given pathbuilder and nquads. output is written to output.

func Import

func Import(path string, st *stats.Stats) (drincw Glass, err error)

Import loads a glass from disk

func (*Glass) Close

func (glass *Glass) Close() error

func (*Glass) DecodeFrom

func (glass *Glass) DecodeFrom(decoder *gob.Decoder) (err error)

DecodeFrom decodes a glass from the given decoder

func (*Glass) EncodeTo

func (glass *Glass) EncodeTo(encoder *gob.Encoder) error

EncodeTo encodes a glass to a given encoder

Jump to

Keyboard shortcuts

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