Documentation ¶
Overview ¶
Package jcon implements JSON content (JCON) parser.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Unmarshal ¶
Unmarshal parses JSON content representation to PDP's internal represntation and returns pointer to LocalContent. It sets given tag to the content. Content with no tag can't be updated.
func UnmarshalUpdate ¶
func UnmarshalUpdate(r io.Reader, cID string, oldTag, newTag uuid.UUID, s pdp.Symbols) (*pdp.ContentUpdate, error)
UnmarshalUpdate parses JSON content update representation to PDP's internal represntation. It requires content id and oldTag to match content to update. Value of newTag is set to the content when update is applied.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.