Documentation ¶
Index ¶
Constants ¶
View Source
const ( HEX = "hex" BASE64 = "base64" NONE = "none" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AvroMessageDeserializer ¶
type AvroMessageDeserializer struct {
// contains filtered or unexported fields
}
func CreateAvroMessageDeserializer ¶
func CreateAvroMessageDeserializer(topic string, avroSchemaRegistry string) (AvroMessageDeserializer, error)
func (AvroMessageDeserializer) CanDeserialize ¶
func (deserializer AvroMessageDeserializer) CanDeserialize(topic string) (bool, error)
func (AvroMessageDeserializer) Deserialize ¶
func (deserializer AvroMessageDeserializer) Deserialize(rawMsg *sarama.ConsumerMessage, flags Flags) error
type CachingSchemaRegistry ¶
type CachingSchemaRegistry struct {
// contains filtered or unexported fields
}
func CreateCachingSchemaRegistry ¶
func CreateCachingSchemaRegistry(avroSchemaRegistry string) (*CachingSchemaRegistry, error)
func (*CachingSchemaRegistry) GetSchemaByID ¶
func (registry *CachingSchemaRegistry) GetSchemaByID(id int) (string, error)
func (*CachingSchemaRegistry) Subjects ¶
func (registry *CachingSchemaRegistry) Subjects() ([]string, error)
type ConsumedMessage ¶
type DefaultMessageDeserializer ¶
type DefaultMessageDeserializer struct { }
func (DefaultMessageDeserializer) CanDeserialize ¶
func (deserializer DefaultMessageDeserializer) CanDeserialize(_ string) (bool, error)
func (DefaultMessageDeserializer) Deserialize ¶
func (deserializer DefaultMessageDeserializer) Deserialize(rawMsg *sarama.ConsumerMessage, flags Flags) error
type Flags ¶
type Flags struct { PrintKeys bool PrintTimestamps bool PrintAvroSchema bool PrintHeaders bool OutputFormat string Separator string Partitions []int Offsets []string FromBeginning bool Tail int Exit bool EncodeValue string EncodeKey string ProtoFiles []string ProtoImportPaths []string ProtosetFiles []string KeyProtoType string ValueProtoType string }
type MessageDeserializer ¶
type MessageDeserializerChain ¶ added in v1.24.0
type MessageDeserializerChain []MessageDeserializer
func (MessageDeserializerChain) CanDeserialize ¶ added in v1.24.0
func (deserializer MessageDeserializerChain) CanDeserialize(topic string) (bool, error)
func (MessageDeserializerChain) Deserialize ¶ added in v1.24.0
func (deserializer MessageDeserializerChain) Deserialize(msg *sarama.ConsumerMessage, flags Flags) error
type ProtobufMessageDeserializer ¶ added in v1.24.0
type ProtobufMessageDeserializer struct {
// contains filtered or unexported fields
}
func CreateProtobufMessageDeserializer ¶ added in v1.24.0
func CreateProtobufMessageDeserializer(context protobuf.SearchContext, keyType, valueType string) (*ProtobufMessageDeserializer, error)
func (ProtobufMessageDeserializer) CanDeserialize ¶ added in v1.24.0
func (deserializer ProtobufMessageDeserializer) CanDeserialize(_ string) (bool, error)
func (ProtobufMessageDeserializer) Deserialize ¶ added in v1.24.0
func (deserializer ProtobufMessageDeserializer) Deserialize(rawMsg *sarama.ConsumerMessage, flags Flags) error
Click to show internal directories.
Click to hide internal directories.