protobuf

package
v0.0.0-...-01962dd 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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProtoSerDe

type ProtoSerDe struct{}

ProtoSerDe implements protbuf messages serializer and deserializer

func NewProtoSerDe

func NewProtoSerDe() *ProtoSerDe

func (*ProtoSerDe) Deserialize

func (s *ProtoSerDe) Deserialize(msgData []byte, msg interface{}) (int, error)

func (*ProtoSerDe) Serialize

func (s *ProtoSerDe) Serialize(schemaID int, msg interface{}) ([]byte, error)

type SchemaRegistrator

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

func NewSchemaRegistrator

func NewSchemaRegistrator(srclient srclient.Client) *SchemaRegistrator

func (*SchemaRegistrator) Load

func (r *SchemaRegistrator) Load(ctx context.Context, schemaID int, name string) ([]*desc.FileDescriptor, error)

func (*SchemaRegistrator) RegisterKey

func (r *SchemaRegistrator) RegisterKey(ctx context.Context, topic string, msg interface{}) (int, error)

func (*SchemaRegistrator) RegisterValue

func (r *SchemaRegistrator) RegisterValue(ctx context.Context, topic string, msg interface{}) (int, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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