Documentation
¶
Index ¶
- type CloudEventsKafkaPayload
- type JSONSchemaSerializer
- func (s JSONSchemaSerializer) GetFormat() string
- func (s JSONSchemaSerializer) GetKeySchemaId() int
- func (s JSONSchemaSerializer) GetValueSchemaId() int
- func (s JSONSchemaSerializer) SerializeKey(topic string, ev event.Event) ([]byte, error)
- func (s JSONSchemaSerializer) SerializeValue(topic string, ev event.Event) ([]byte, error)
- type JSONSerializer
- func (s JSONSerializer) GetFormat() string
- func (s JSONSerializer) GetKeySchemaId() int
- func (s JSONSerializer) GetValueSchemaId() int
- func (s JSONSerializer) SerializeKey(topic string, ev event.Event) ([]byte, error)
- func (s JSONSerializer) SerializeValue(topic string, ev event.Event) ([]byte, error)
- type Serializer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudEventsKafkaPayload ¶
type JSONSchemaSerializer ¶
type JSONSchemaSerializer struct {
// contains filtered or unexported fields
}
func NewJSONSchemaSerializer ¶
func NewJSONSchemaSerializer(schemaRegistry schemaregistry.Client) (*JSONSchemaSerializer, error)
NewJSONSchemaSerializer initializes a new schema in the registry.
func (JSONSchemaSerializer) GetFormat ¶
func (s JSONSchemaSerializer) GetFormat() string
func (JSONSchemaSerializer) GetKeySchemaId ¶
func (s JSONSchemaSerializer) GetKeySchemaId() int
func (JSONSchemaSerializer) GetValueSchemaId ¶
func (s JSONSchemaSerializer) GetValueSchemaId() int
func (JSONSchemaSerializer) SerializeKey ¶
func (JSONSchemaSerializer) SerializeValue ¶
type JSONSerializer ¶
type JSONSerializer struct{}
func NewJSONSerializer ¶
func NewJSONSerializer() JSONSerializer
func (JSONSerializer) GetFormat ¶
func (s JSONSerializer) GetFormat() string
func (JSONSerializer) GetKeySchemaId ¶
func (s JSONSerializer) GetKeySchemaId() int
func (JSONSerializer) GetValueSchemaId ¶
func (s JSONSerializer) GetValueSchemaId() int
func (JSONSerializer) SerializeKey ¶
func (JSONSerializer) SerializeValue ¶
Click to show internal directories.
Click to hide internal directories.