Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadProtocolSpec ¶
func LoadProtocolSpec(kafkaProtocolSpec fs.FS) (map[string]*MessageSpec, error)
Types ¶
type MessageFieldSpec ¶
type MessageFieldSpec struct { Name string `json:"name"` Type string `json:"type"` MapKey bool `json:"mapKey,omitempty"` Default any `json:"default,omitempty"` EntityType string `json:"entityType,omitempty"` ZeroCopy *bool `json:"zeroCopy,omitempty"` Versions string `json:"versions"` FlexibleVersions string `json:"flexibleVersions,omitempty"` NullableVersions string `json:"nullableVersions,omitempty"` TaggedVersions string `json:"taggedVersions,omitempty"` Ignorable bool `json:"ignorable,omitempty"` Tag *uint32 `json:"tag,omitempty"` About string `json:"about"` Fields []MessageFieldSpec `json:"fields,omitempty"` }
type MessageSpec ¶
type MessageSpec struct { APIKey int `json:"apiKey"` Type string `json:"type"` Listeners []string `json:"listeners,omitempty"` Name string `json:"name"` ValidVersions string `json:"validVersions"` FlexibleVersions string `json:"flexibleVersions"` Fields []MessageFieldSpec `json:"fields"` CommonStructs []StructSpec `json:"commonStructs,omitempty"` }
type StructSpec ¶
type StructSpec struct { Name string `json:"name"` Versions string `json:"versions"` Fields []MessageFieldSpec `json:"fields"` }
Click to show internal directories.
Click to hide internal directories.