schema

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2025 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

View Source
const TypeAvro = schema.TypeAvro

Variables

View Source
var (
	ErrSubjectNotFound = pprocutils.ErrSubjectNotFound
	ErrVersionNotFound = pprocutils.ErrVersionNotFound
	ErrInvalidSchema   = pprocutils.ErrInvalidSchema
)
View Source
var SchemaService pprocutils.SchemaService = newCachedSchemaService(NewInMemoryService())

Functions

func Create

func Create(ctx context.Context, typ schema.Type, subject string, bytes []byte) (schema.Schema, error)

func Get

func Get(ctx context.Context, subject string, version int) (schema.Schema, error)

Types

type InMemoryService

type InMemoryService struct {
	// contains filtered or unexported fields
}

func NewInMemoryService

func NewInMemoryService() *InMemoryService

func (*InMemoryService) CreateSchema

func (*InMemoryService) GetSchema

Jump to

Keyboard shortcuts

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