Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Message ¶
type Message[K any, V any] struct { Topic string Partition int32 Offset int64 Key K Value V Headers map[string][]Bytes Timestamp time.Time }
func Convert ¶
func Convert[K1 any, V1 any, K2 any, V2 any]( source Message[K1, V1], k1 format.Format[K1], v1 format.Format[V1], k2 format.Format[K2], v2 format.Format[V2], ) (Message[K2, V2], error)
assuming byte compatibility, i.e. bytes <-> proto, string <-> json
func EmptySlice ¶ added in v0.1.3
type MessageFormat ¶
type MessageFormat struct{}
for byte based storage of a message
Click to show internal directories.
Click to hide internal directories.