package
6.0.0-beta.10+incompatible
Repository: https://github.com/nuts-foundation/nuts-node.git
Documentation: pkg.go.dev
# Functions
AddContext adds the context to the @context array.
AllFieldsDefined tests whether all fields are defined in the JSON-LD context(s) of the input.
DefaultAllowList returns the default allow list for external contexts.
DefaultConfig returns a fresh Config filled with default values.
DefaultContextConfig returns the default list of allowed external resources and a mapping to embedded contexts.
FlagSet contains flags relevant for JSON-LD.
JWS2020ContextV1URI returns JWS2020ContextV1 as a URI.
MustParseScalar returns a Scalar based on an interface value.
NewContextLoader creates a new JSON-LD context loader with the embedded FS as first loader.
NewEmbeddedFSDocumentLoader creates a new embeddedFSDocumentLoader for an embedded filesystem.
NewFilteredLoader accepts a list of allowed urls and a nextLoader and creates a new filteredDocumentLoader.
NewJSONLDInstance creates a new instance of the jsonld struct which implements the JSONLD interface.
NewMappedDocumentLoader rewrites document request using a mapping and calls the nextLoader.
NewPath creates a Path.
NewTestJSONLDManager creates a new test context manager which contains extra test contexts.
ParseScalar returns a Scalar based on an interface value.
TestVC returns an instance of the TestCredential.
# Constants
JSONLdBase is the base URL used for IRIs that are unknown when expanding a JSON-LD document.
JSONLDExample is a JSON-LD document example with a custom nested context covering all different supported term types.
Jws2020Context contains the JsonWebToken2020 Proof type context.
SchemaOrgContext contains the schema.org context url.
TestCredential contains a valid credential of the Humancredential type.
TestOrganizationCredential is an example of a NutsOrganizationCredential without Proof.
W3cStatusList2021Context contains the StatusList2021 related context.
W3cVcContext contains the w3c VerifiableCredential type context.
# Variables
No description provided by the author
CredentialIssuerPath contains the JSON-LD search path for the credential issuer.
CredentialSubjectPath contains the JSON-LD search path for the credential subject ID.
ErrInvalidValue is returned when an invalid value is parsed.
OrganizationCityPath contains the JSON-LD search path for finding an organization city.
OrganizationNamePath contains the JSON-LD search path for finding an organization name.
# Structs
Config holds the config for the vcr engine.
ContextsConfig contains config for json-ld document loader.
LDUtil package a set of often used JSON-LD operations for re-usability.
Reader adds Document reader functions for a JSON-LD context.
# Type aliases
BoolScalar is the boolean version of a Scalar.
Document represents a JSON-LD document in expanded form.
Float64Scalar is the float64 version of a Scalar.
Path is used to traverse an expanded JSON-LD document Its elements are IRIs.
StringScalar is the string version of a Scalar.