schema_registry

package module
v1.0.1 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

ProtoBuf native implementation of the schema registry

TODO

  • port avro features from go-connect
  • turn-off all logging and rely on well-formatted errors

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client added in v1.0.1

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

func NewClient

func NewClient(baseUrl string) *Client

func (*Client) AutoSerialize added in v1.0.1

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

func (*Client) Deserialize added in v1.0.1

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

func (*Client) GetSchema added in v1.0.1

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

func (*Client) GetSubjectVersion added in v1.0.1

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

func (*Client) GetSubjectVersionBySchemaId added in v1.0.1

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

func (*Client) RegisterSchemaForType added in v1.0.1

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

func (*Client) Serialize added in v1.0.1

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

func (*Client) WithTls added in v1.0.1

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

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)

func (Schema) Fingerprint added in v1.0.1

func (s Schema) Fingerprint() (*Fingerprint, error)

Jump to

Keyboard shortcuts

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