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
}
Click to show internal directories.
Click to hide internal directories.