Documentation
¶
Index ¶
- Constants
- type Codec
- func (c *Codec) Decode(content []byte) (dnd.NPCRegistry, error)
- func (c *Codec) DecodeCandidate(content []byte) (dnd.NPCRegistry, error)
- func (c *Codec) Encode(value dnd.NPCRegistry) ([]byte, error)
- func (c *Codec) EncodeCandidate(value dnd.NPCRegistry) ([]byte, error)
- func (c *Codec) Kind() contracts.ArtifactKind
- func (c *Codec) MediaType() string
- func (c *Codec) Metadata(value dnd.NPCRegistry) map[string]any
- func (c *Codec) Schema() contracts.ArtifactSchema
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 (*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) 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) Schema ¶
func (c *Codec) Schema() contracts.ArtifactSchema
Click to show internal directories.
Click to hide internal directories.