schemaregistry

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ID

type ID int

ID is the schema registry's schema ID

func (ID) MarshalZerologObject

func (i ID) MarshalZerologObject(e *zerolog.Event)

MarshalZerologObject implements the zerolog marshaler so it can be logged using: log.With().EmbedObject(id).Msg("Some message")

type Repository

type Repository interface {
	GetSchemaByID(
		ctx context.Context,
		id ID,
	) (avro.Schema, error)
	GetIDBySchema(
		ctx context.Context,
		subject Subject,
		schema string,
	) (ID, avro.Schema, error)
}

Repository is responsible for retrieving schemas for a given ID

type Subject

type Subject string

Subject is the schema registry's subject for schemas

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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