Documentation
¶
Index ¶
- type Client
- func (c *Client) AutoSerialize(ctx context.Context, subject string, value proto.Message) ([]byte, error)
- func (c *Client) Deserialize(ctx context.Context, data []byte) (proto.Message, error)
- func (c *Client) GetSchema(ctx context.Context, schemaId uint32) (*Schema, error)
- func (c *Client) GetSubjectVersion(ctx context.Context, subject string, version int) (*Schema, error)
- func (c *Client) GetSubjectVersionBySchemaId(ctx context.Context, subject string, schemaId uint32) (int, error)
- func (c *Client) RegisterSchemaForType(ctx context.Context, subject string, protoType protoreflect.Message) (uint32, error)
- func (c *Client) Serialize(schemaId uint32, value proto.Message) ([]byte, error)
- func (c *Client) WithTls(config *tls.Config) *Client
- type Fingerprint
- type Schema
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 (*Client) AutoSerialize ¶ added in v1.0.1
func (*Client) Deserialize ¶ added in v1.0.1
func (*Client) GetSubjectVersion ¶ added in v1.0.1
func (*Client) GetSubjectVersionBySchemaId ¶ added in v1.0.1
func (*Client) RegisterSchemaForType ¶ added in v1.0.1
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)
Click to show internal directories.
Click to hide internal directories.