Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_kafka_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type CompletedConfig ¶
type CompletedConfig struct {
// contains filtered or unexported fields
}
func (CompletedConfig) NewClient ¶
func (c CompletedConfig) NewClient() (*kafka.Client, error)
NewClient creates a new client which a high-level API to interact with kafka brokers.
func (CompletedConfig) NewReaderConfig ¶
func (c CompletedConfig) NewReaderConfig() (*kafka.Reader, error)
NewReaderConfig creates a new writer that is a configuration object used to create new instances of Reader.
func (CompletedConfig) NewWriter ¶
func (c CompletedConfig) NewWriter() (*kafka.Writer, error)
NewWriter creates a new writer which provides the implementation of a producer of kafka messages that automatically distributes messages across partitions of a single topic using a configurable balancing policy.
type Config ¶
type Config struct { GetViper func() *viper.Viper // If set, overrides params below Proto Kafka Validator *validator.Validate }
func NewViperConfig ¶
NewViperConfig returns a Config struct with the global viper instance key representing a sub tree of this instance. NewViperConfig is case-insensitive for a key.
func (*Config) Complete ¶
func (c *Config) Complete() CompletedConfig
Complete fills in any fields not set that are required to have valid data and can be derived from other fields. If you're going to ApplyOptions, do that first. It's mutating the receiver. ApplyOptions is called inside.
type Kafka ¶
type Kafka struct { // https://github.com/edenhill/librdkafka/blob/master/CONFIGURATION.md // Either a single address or a seed list of host:port addresses // of cluster/sentinel nodes. Addrs []string `protobuf:"bytes,1,rep,name=addrs,proto3" json:"addrs,omitempty"` // contains filtered or unexported fields }
func (*Kafka) Descriptor
deprecated
func (*Kafka) ProtoMessage ¶
func (*Kafka) ProtoMessage()
func (*Kafka) ProtoReflect ¶
func (x *Kafka) ProtoReflect() protoreflect.Message