Documentation ¶
Index ¶
- func InitCommonConfig(options ...ConfigOption)
- func NewParamGroup(m map[string]string) paramtable.ParamGroup
- func NewParamItem(value string) paramtable.ParamItem
- type CommonConfig
- type ConfigOption
- type EtcdRetryConfig
- type EtcdServerConfig
- type KafkaConfig
- type MQConfig
- type Option
- type OptionFunc
- type PulsarConfig
- type ReaderConfig
- type RetrySettings
- type WriterConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitCommonConfig ¶
func InitCommonConfig(options ...ConfigOption)
func NewParamGroup ¶
func NewParamGroup(m map[string]string) paramtable.ParamGroup
Types ¶
type CommonConfig ¶
type CommonConfig struct {
Retry RetrySettings
}
func GetCommonConfig ¶
func GetCommonConfig() *CommonConfig
type ConfigOption ¶
type ConfigOption func(config *CommonConfig)
type EtcdRetryConfig ¶
type EtcdRetryConfig struct {
Retry RetrySettings
}
type EtcdServerConfig ¶
type EtcdServerConfig struct { Address []string `yaml:"address"` RootPath string `yaml:"rootPath"` MetaSubPath string `yaml:"metaSubPath"` // Auth config EnableAuth bool `yaml:"enableAuth"` Username string `yaml:"username"` Password string `yaml:"password"` // TLS config EnableTLS bool `yaml:"enableTLS"` TLSCertPath string `yaml:"tlsCertPath"` TLSKeyPath string `yaml:"tlsKeyPath"` TLSCACertPath string `yaml:"tlsCACertPath"` TLSMinVersion string `yaml:"tlsMinVersion"` }
type KafkaConfig ¶
type MQConfig ¶
type MQConfig struct { Pulsar PulsarConfig Kafka KafkaConfig }
type OptionFunc ¶
type OptionFunc[T any] func(object T)
func (OptionFunc[T]) Apply ¶
func (o OptionFunc[T]) Apply(object T)
type PulsarConfig ¶
type ReaderConfig ¶
type RetrySettings ¶
type WriterConfig ¶
type WriterConfig struct { MessageBufferSize int Retry RetrySettings }
Click to show internal directories.
Click to hide internal directories.