Documentation ¶
Index ¶
- Constants
- func CalculateID(namespace string, value interface{}, hashAlgorithmAsMultihashCode uint) (string, error)
- func GetCreateResult(op *operation.Operation, pv protocol.Version) (*protocol.ResolutionModel, error)
- func GetNamespaceFromID(id string) (string, error)
- func GetTransformationInfoForPublished(namespace, id, suffix string, internalResult *protocol.ResolutionModel) protocol.TransformationInfo
- func GetTransformationInfoForUnpublished(namespace, domain, label, suffix, createRequestJCS string) protocol.TransformationInfo
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 GetCreateResult ¶
func GetNamespaceFromID ¶
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.
Click to show internal directories.
Click to hide internal directories.