options

package
v0.0.0-...-d5b0b98 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectorConfig

type ConnectorConfig struct {
	ConnectorType define.ConnectorType
	KafkaConfig   KafkaConfig
	PulsarConfig  PulsarConfig
	NsqConfig     NsqConfig
}

ConnectorConfig is a connector config

type KafkaConfig

type KafkaConfig struct {
	BrokerList                 []string
	OffsetsAutoCommitEnable    bool
	FlowControlBatchNum        int
	Version                    string
	InitOffsetGetOffsetTimeout int64
	InitOffsetGetOffsetPeroid  int64
}

KafkaConfig is a Kafka config

type NsqConfig

type NsqConfig struct {
	NodeList    []string
	LookUpAddrs []string
}

NsqConfig is a Nsq config

type Options

type Options struct {
	LogConfig           log.Config
	ConnectorConfig     ConnectorConfig
	ConfConnectorConfig cc.ConfConnectorConfig
	RedisConfig         redis.Config
	ProducerConfig      ProducerConfig
	MonitorConfig       monitor.Options
}

Options is a processor server config

func NewOptions

func NewOptions() (*Options, error)

NewOptions creates a new processor configuration

type ProducerConfig

type ProducerConfig struct {
	Addr    string
	Timeout time.Duration
}

ProducerConfig is a producer server config

type PulsarConfig

type PulsarConfig struct {
	URL         string
	TopicPrefix string
	Token       string
}

PulsarConfig is a Pulsar config

Jump to

Keyboard shortcuts

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