anchorlinkset

package
v1.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildAnchorLink(payload *subject.Payload, dataURIMediaType datauri.MediaType,
	buildVC vcBuilder) (anchorLink *linkset.Link, vcBytes []byte, err error)

BuildAnchorLink builds an anchor Link from the given payload.

func GetPayloadFromAnchorLink(anchorLink *linkset.Link) (*subject.Payload, error)

GetPayloadFromAnchorLink populates a Payload from the given anchor event.

Types

type ContentObject

type ContentObject struct {
	Profile *url.URL
	Payload vocab.Document
}

ContentObject wraps a content object payload and includes the ID of the generator used to generate the payload.

func BuildContentObject

func BuildContentObject(payload *subject.Payload) (*ContentObject, error)

BuildContentObject builds a contentObject from the given payload.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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