Documentation ¶
Index ¶
- type ProtoSerDe
- type SchemaRegistrator
- func (r *SchemaRegistrator) Load(ctx context.Context, schemaID int, name string) ([]*desc.FileDescriptor, error)
- func (r *SchemaRegistrator) RegisterKey(ctx context.Context, topic string, msg interface{}) (int, error)
- func (r *SchemaRegistrator) RegisterValue(ctx context.Context, topic string, msg interface{}) (int, error)
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)
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 (*SchemaRegistrator) RegisterValue ¶
Click to show internal directories.
Click to hide internal directories.