jcon

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: Apache-2.0 Imports: 24 Imported by: 4

Documentation

Overview

Package jcon implements JSON content (JCON) parser.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unmarshal

func Unmarshal(r io.Reader, tag *uuid.UUID) (*pdp.LocalContent, error)

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.

Jump to

Keyboard shortcuts

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