schema_registry

package module
v1.0.3 Latest Latest
Warning

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

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

README

go-schema-registry-client

ProtoBuf native implementation of the schema registry

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AvroSchema added in v1.0.2

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

func (*AvroSchema) Render added in v1.0.2

func (s *AvroSchema) Render() (string, error)

func (*AvroSchema) Type added in v1.0.2

func (s *AvroSchema) Type() string

type Client added in v1.0.1

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

func NewClient

func NewClient(baseUrl string) *Client

func NewClientWithTls added in v1.0.2

func NewClientWithTls(baseUrl string, config *tls.Config) *Client

func (*Client) Deserialize added in v1.0.1

func (c *Client) Deserialize(ctx context.Context, data []byte) (interface{}, 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) RegisterAvroType added in v1.0.2

func (c *Client) RegisterAvroType(ctx context.Context, subject string, schema avro.Schema) (uint32, error)

func (*Client) RegisterProtobufType added in v1.0.2

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

func (*Client) Serialize added in v1.0.1

func (c *Client) Serialize(ctx context.Context, subject string, value interface{}) ([]byte, error)

type ProtobufSchema added in v1.0.2

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

func NewProtobufSchema added in v1.0.2

func NewProtobufSchema(d protoreflect.FileDescriptor) (*ProtobufSchema, error)

func (*ProtobufSchema) Print added in v1.0.3

func (s *ProtobufSchema) Print()

func (*ProtobufSchema) Render added in v1.0.2

func (s *ProtobufSchema) Render() (string, error)

func (*ProtobufSchema) Type added in v1.0.2

func (s *ProtobufSchema) Type() string

type Schema

type Schema interface {
	//Fingerprint() (*Fingerprint, error)
	Render() (string, error)
	Type() string
}

Jump to

Keyboard shortcuts

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