Documentation ¶
Index ¶
- Constants
- type AvroSchema
- type Client
- func (c *Client) Deserialize(ctx context.Context, data []byte) (interface{}, error)
- func (c *Client) DeserializeInto(ctx context.Context, data []byte, into interface{}) 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) RegisterAvroType(ctx context.Context, subject string, schema avro.Schema) (uint32, error)
- func (c *Client) RegisterProtobufType(ctx context.Context, subject string, protoType protoreflect.Message) (uint32, error)
- func (c *Client) Serialize(ctx context.Context, subject string, value interface{}) ([]byte, error)
- type Config
- type LogLevel
- type ProtobufSchema
- type Schema
Constants ¶
View Source
const LogEntities = 128
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 NewAvroSchema ¶ added in v1.1.5
func NewAvroSchema(jsonSchema string) (*AvroSchema, error)
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 NewClientWith ¶ added in v1.1.3
func (*Client) Deserialize ¶ added in v1.0.1
func (*Client) DeserializeInto ¶ added in v1.1.0
func (*Client) GetSubjectVersion ¶ added in v1.0.1
func (*Client) GetSubjectVersionBySchemaId ¶ added in v1.0.1
func (*Client) RegisterAvroType ¶ added in v1.0.2
func (*Client) RegisterProtobufType ¶ added in v1.0.2
type Config ¶ added in v1.1.2
func (*Config) AddClientCert ¶ added in v1.1.7
func (*Config) LogEntities ¶ added in v1.1.4
func (*Config) LogWarnings ¶ added in v1.1.2
type LogLevel ¶ added in v1.1.2
type LogLevel uint32
const LogCaches LogLevel = 4
const LogEverything LogLevel = 255
const LogHttp LogLevel = 2
const LogNothing LogLevel = 0
const LogWarnings LogLevel = 1
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
Click to show internal directories.
Click to hide internal directories.