Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 4.2% on proxy.golang.org
Top 4.6% dependent packages on proxy.golang.org
Top 1.6% forks on proxy.golang.org

proxy.golang.org : github.com/twmb/franz-go/pkg/kmsg/v2

Package kmsg contains Kafka request and response types and autogenerated serialization and deserialization functions. This package may bump major versions whenever Kafka makes a backwards incompatible protocol change, per the types chosen for this package. For example, Kafka can change a field from non-nullable to nullable, which would require changing a field from a non-pointer to a pointer. We could get around this by making everything an opaque struct and having getters, but that is more tedious than having a few rare major version bumps. If you are using this package directly with kgo, you should either always use New functions, or Default functions after creating structs, or you should pin the max supported version. If you use New functions, you will have safe defaults as new fields are added. If you pin versions, you will avoid new fields being used. If you do neither of these, you may opt in to new fields that do not have safe zero value defaults, and this may lead to errors or unexpected results. Thus, whenever you initialize a struct from this package, do the following: Most of this package is generated, but a few things are manual. What is manual: all interfaces, the RequestFormatter, record / message / record batch reading, and sticky member metadata serialization.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/twmb/franz-go/pkg/kmsg/v2
Keywords: client, go, golang, kafka, kafka-client
License: BSD-3-Clause
Latest release: 11 months ago
First release: over 1 year ago
Namespace: github.com/twmb/franz-go/pkg/kmsg
Dependent packages: 1
Stars: 974 on GitHub
Forks: 103 on GitHub
See more repository details: repos.ecosyste.ms
Funding links: https://github.com/sponsors/twmb
Last synced: 6 days ago

    Loading...
    Readme
    Loading...