docutil

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 9 Imported by: 4

Documentation

Index

Constants

View Source
const NamespaceDelimiter = ":"

NamespaceDelimiter is the delimiter that separates the namespace from the unique suffix.

Variables

This section is empty.

Functions

func CalculateID

func CalculateID(namespace string, value interface{}, hashAlgorithmAsMultihashCode uint) (string, error)

CalculateID calculates the ID from model and namespace.

func GetNamespaceFromID

func GetNamespaceFromID(id string) (string, error)

GetNamespaceFromID returns namespace from ID.

func GetTransformationInfoForPublished

func GetTransformationInfoForPublished(namespace, id, suffix string,
	internalResult *protocol.ResolutionModel) protocol.TransformationInfo

GetTransformationInfoForPublished will create transformation info object for published document.

func GetTransformationInfoForUnpublished

func GetTransformationInfoForUnpublished(namespace, domain, label, suffix, createRequestJCS string) protocol.TransformationInfo

GetTransformationInfoForUnpublished will create transformation info object for unpublished document.

Types

This section is empty.

Jump to

Keyboard shortcuts

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