schema_registry

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateSchemaRequest added in v0.6.0

type CreateSchemaRequest struct {
	OcppContext ocpp.OcppContext
	Action      string
	Schema      json.RawMessage
}

type DeleteSchemaRequest added in v0.6.0

type DeleteSchemaRequest struct {
	OcppContext ocpp.OcppContext
	Action      string
}

type GetSchemaRequest added in v0.6.0

type GetSchemaRequest struct {
	OcppContext ocpp.OcppContext
	Action      string
}

type SchemaRegistry

type SchemaRegistry interface {
	RegisterSchema(ctx context.Context, req CreateSchemaRequest) error
	DeleteSchema(ctx context.Context, req DeleteSchemaRequest) error
	// GetSchema retrieves a compiled schema for the given OCPP version and action.
	// When Vendor and/or Model are non-empty the registry first attempts to return a
	// vendor/model-specific schema and falls back to the base OCPP spec schema when
	// no specific schema is found.
	GetSchema(ctx context.Context, req GetSchemaRequest) (*jsonschema.Schema, bool)
	Type() string
}

Directories

Path Synopsis
registries

Jump to

Keyboard shortcuts

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