kafka

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	BackendIDAttribute = "triggermeshbackendid"
)

Variables

This section is empty.

Functions

func New

func New(args *KafkaArgs, logger *zap.SugaredLogger) backend.Interface

Types

type KafkaArgs

type KafkaArgs struct {
	Addresses []string `help:"Kafka addresses." env:"ADDRESSES"`
	Topic     string   `help:"Kafka topic." env:"TOPIC" default:"triggermesh"`

	GssServiceName        string `help:"GSSAPI service name." env:"GSSAPI_SERVICE_NAME"`
	GssRealm              string `help:"GSSAPI realm." env:"GSSAPI_REALM"`
	GssPrincipal          string `help:"GSSAPI principal." env:"GSSAPI_PRINCIPAL"`
	GssKeyTabPath         string `help:"GSSAPI keytab path." name:"gss-keytab-path" env:"GSSAPI_KEYTAB_PATH"`
	GssKerberosConfigPath string `help:"GSSAPI service name." env:"GSSAPI_KERBEROS_CONFIG_PATH"`

	ConsumerGroupPrefix string `help:"Kafka consumer group name." env:"CONSUMER_GROUP_PREFIX" default:"default"`
	// Instance at the Kafka consumer group. Copied from the InstanceName at the global args.
	Instance string `kong:"-"`

	TrackingIDEnabled bool `help:"Enables adding Kafka Offset as a CloudEvent attribute." env:"TRACKING_ID_ENABLED" default:"false"`
}

func (*KafkaArgs) IsGSSAPI

func (ka *KafkaArgs) IsGSSAPI() (bool, error)

func (*KafkaArgs) Validate

func (ka *KafkaArgs) Validate() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL