kafka_input

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SHA256 scram.HashGeneratorFcn = func() hash.Hash { return sha256.New() }
View Source
var SHA512 scram.HashGeneratorFcn = func() hash.Hash { return sha512.New() }

Functions

This section is empty.

Types

type Config

type Config struct {
	Name              string        `mapstructure:"name,omitempty"`
	Address           string        `mapstructure:"address,omitempty"`
	Topics            string        `mapstructure:"topics,omitempty"`
	SASL              *sasl         `mapstructure:"sasl,omitempty"`
	GroupID           string        `mapstructure:"group-id,omitempty"`
	SessionTimeout    time.Duration `mapstructure:"session-timeout,omitempty"`
	HeartbeatInterval time.Duration `mapstructure:"heartbeat-interval,omitempty"`
	RecoveryWaitTime  time.Duration `mapstructure:"recovery-wait-time,omitempty"`
	Version           string        `mapstructure:"version,omitempty"`
	Format            string        `mapstructure:"format,omitempty"`
	Debug             bool          `mapstructure:"debug,omitempty"`
	NumWorkers        int           `mapstructure:"num-workers,omitempty"`
	Outputs           []string      `mapstructure:"outputs,omitempty"`
	EventProcessors   []string      `mapstructure:"event-processors,omitempty"`
	// contains filtered or unexported fields
}

Config //

type KafkaInput

type KafkaInput struct {
	Cfg *Config
	// contains filtered or unexported fields
}

KafkaInput //

func (*KafkaInput) Close

func (k *KafkaInput) Close() error

func (*KafkaInput) SetEventProcessors added in v0.8.0

func (k *KafkaInput) SetEventProcessors(ps map[string]map[string]interface{}, logger *log.Logger, tcs map[string]*types.TargetConfig)

func (*KafkaInput) SetLogger

func (k *KafkaInput) SetLogger(logger *log.Logger)

func (*KafkaInput) SetName

func (k *KafkaInput) SetName(name string)

func (*KafkaInput) SetOutputs

func (k *KafkaInput) SetOutputs(outs map[string]outputs.Output)

func (*KafkaInput) Start

func (k *KafkaInput) Start(ctx context.Context, name string, cfg map[string]interface{}, opts ...inputs.Option) error

type XDGSCRAMClient added in v0.9.0

type XDGSCRAMClient struct {
	*scram.Client
	*scram.ClientConversation
	scram.HashGeneratorFcn
}

func (*XDGSCRAMClient) Begin added in v0.9.0

func (x *XDGSCRAMClient) Begin(userName, password, authzID string) (err error)

func (*XDGSCRAMClient) Done added in v0.9.0

func (x *XDGSCRAMClient) Done() bool

func (*XDGSCRAMClient) Step added in v0.9.0

func (x *XDGSCRAMClient) Step(challenge string) (response string, err error)

Jump to

Keyboard shortcuts

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