schema_registry

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: Apache-2.0 Imports: 25 Imported by: 1

README

go-schema-registry-client

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fingerprint

type Fingerprint [32]byte

func (*Fingerprint) Equal

func (f *Fingerprint) Equal(other *Fingerprint) bool

type Schema

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

func NewSchema

func NewSchema(d protoreflect.FileDescriptor) (*Schema, error)

type SchemaRegistryClient

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

func NewClient

func NewClient(baseUrl string) *SchemaRegistryClient

func (*SchemaRegistryClient) AutoSerialize

func (c *SchemaRegistryClient) AutoSerialize(ctx context.Context, subject string, value proto.Message) ([]byte, error)

func (*SchemaRegistryClient) Deserialize

func (c *SchemaRegistryClient) Deserialize(ctx context.Context, data []byte) (proto.Message, error)

func (*SchemaRegistryClient) GetSchema

func (c *SchemaRegistryClient) GetSchema(ctx context.Context, schemaId uint32) (*Schema, error)

func (*SchemaRegistryClient) GetSubjectVersion

func (c *SchemaRegistryClient) GetSubjectVersion(ctx context.Context, subject string, version int) (*Schema, error)

func (*SchemaRegistryClient) GetSubjectVersionBySchemaId

func (c *SchemaRegistryClient) GetSubjectVersionBySchemaId(ctx context.Context, subject string, schemaId uint32) (int, error)

func (*SchemaRegistryClient) RegisterSchemaForType

func (c *SchemaRegistryClient) RegisterSchemaForType(ctx context.Context, subject string, protoType protoreflect.Message) (uint32, error)

func (*SchemaRegistryClient) Serialize

func (c *SchemaRegistryClient) Serialize(schemaId uint32, value proto.Message) ([]byte, error)

func (*SchemaRegistryClient) WithTls

func (c *SchemaRegistryClient) WithTls(config *tls.Config) *SchemaRegistryClient

Jump to

Keyboard shortcuts

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