codec

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: MIT Imports: 12 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package codec reads and writes language-neutral element descriptor bundles.

Index

Constants

View Source
const APIVersion = "openrealtime.ai/elements/v1alpha1"

Variables

This section is empty.

Functions

func MarshalJSON

func MarshalJSON(bundle Bundle) ([]byte, error)

func MarshalYAML

func MarshalYAML(bundle Bundle) ([]byte, error)

Types

type Bundle

type Bundle struct {
	APIVersion string               `json:"apiVersion" yaml:"apiVersion"`
	Elements   []element.Descriptor `json:"elements" yaml:"elements"`
}

func New

func New(descriptors ...element.Descriptor) Bundle

func Parse

func Parse(path string, source []byte) (Bundle, error)

func ParseJSON

func ParseJSON(path string, source []byte) (Bundle, error)

func ParseYAML

func ParseYAML(path string, source []byte) (Bundle, error)

Jump to

Keyboard shortcuts

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