hydra

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package hydra implements a Mergeable Schema

Index

Constants

View Source
const SchemaName = "hydra"

Variables

This section is empty.

Functions

func Constructor

func Constructor(paramsData json.RawMessage, mkSchema schema.Factory) (schema.Schema, error)

Types

type Params

type Params struct {
	X schema.Spec `json:"x"`
}

type Root

type Root []blobcache.CID

func ParseRoot

func ParseRoot(x []byte) (*Root, error)

func (Root) Marshal

func (r Root) Marshal(out []byte) []byte

func (*Root) Sort

func (r *Root) Sort()

func (*Root) Unmarshal

func (r *Root) Unmarshal(data []byte) error

type Schema

type Schema struct {
	X schema.Schema
}

func (*Schema) Merge

func (sch *Schema) Merge(ctx context.Context, stores []schema.RO, srcs [][]byte, dst *[]byte) error

func (*Schema) ValidateChange

func (sch *Schema) ValidateChange(ctx context.Context, change schema.Change) error

Jump to

Keyboard shortcuts

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