npcregistry

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SchemaID      = "notarius.dnd.npc_registry"
	SchemaName    = "notarius_dnd_npc_registry_v1"
	SchemaVersion = "v1"
	MediaType     = "application/json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Codec

type Codec struct{}

func New

func New() *Codec

func (*Codec) Decode

func (c *Codec) Decode(content []byte) (dnd.NPCRegistry, error)

func (*Codec) DecodeCandidate

func (c *Codec) DecodeCandidate(content []byte) (dnd.NPCRegistry, error)

DecodeCandidate reads one strict durable JSON value before semantic validators have approved it.

func (*Codec) Encode

func (c *Codec) Encode(value dnd.NPCRegistry) ([]byte, error)

func (*Codec) EncodeCandidate

func (c *Codec) EncodeCandidate(value dnd.NPCRegistry) ([]byte, error)

EncodeCandidate provides the durable representation before semantic validators have approved a value.

func (*Codec) Kind

func (c *Codec) Kind() contracts.ArtifactKind

func (*Codec) MediaType

func (c *Codec) MediaType() string

func (*Codec) Metadata

func (c *Codec) Metadata(value dnd.NPCRegistry) map[string]any

func (*Codec) Schema

func (c *Codec) Schema() contracts.ArtifactSchema

Jump to

Keyboard shortcuts

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