Documentation ¶
Index ¶
- Constants
- func CreateAzureEventHubConfig() *sarama.Config
- func NewSha256ScramClient() sarama.SCRAMClient
- func NewSha512ScramClient() sarama.SCRAMClient
- func ParseTopicConfigs(jsonString string) (map[string]TopicConfig, error)
- type Config
- type Consumer
- type DefaultConfigImpl
- type SyncProducer
- type TopicConfig
- type XDGSCRAMClient
Constants ¶
View Source
const (
DefaultKeyKafkaTopicsConfig = "KAFKA_TOPICS_CONFIG"
)
Variables ¶
This section is empty.
Functions ¶
func CreateAzureEventHubConfig ¶ added in v0.7.1
func NewSha256ScramClient ¶
func NewSha256ScramClient() sarama.SCRAMClient
func NewSha512ScramClient ¶
func NewSha512ScramClient() sarama.SCRAMClient
func ParseTopicConfigs ¶ added in v0.7.0
func ParseTopicConfigs(jsonString string) (map[string]TopicConfig, error)
Types ¶
type Config ¶ added in v0.7.0
type Config struct {
// contains filtered or unexported fields
}
func (*Config) ConfigItems ¶ added in v0.7.0
func (c *Config) ConfigItems() []auconfigapi.ConfigItem
func (*Config) TopicConfigs ¶ added in v0.7.0
func (c *Config) TopicConfigs() map[string]TopicConfig
type Consumer ¶
type Consumer[E any] struct { // contains filtered or unexported fields }
func CreateConsumer ¶ added in v0.7.0
type DefaultConfigImpl ¶
type DefaultConfigImpl struct {
// contains filtered or unexported fields
}
func NewDefaultConfig ¶ added in v0.7.0
func NewDefaultConfig() *DefaultConfigImpl
func (*DefaultConfigImpl) ConfigItems ¶ added in v0.7.0
func (c *DefaultConfigImpl) ConfigItems() []auconfigapi.ConfigItem
func (*DefaultConfigImpl) ObtainValues ¶ added in v0.7.0
func (c *DefaultConfigImpl) ObtainValues(getter func(string) string) error
func (*DefaultConfigImpl) TopicConfigs ¶
func (c *DefaultConfigImpl) TopicConfigs(key string) (TopicConfig, bool)
type SyncProducer ¶
type SyncProducer[V any] struct { // contains filtered or unexported fields }
func CreateSyncProducer ¶ added in v0.7.0
func CreateSyncProducer[V any]( _ context.Context, topicConfig TopicConfig, configPreset *sarama.Config, ) (*SyncProducer[V], error)
func (*SyncProducer[E]) Close ¶
func (p *SyncProducer[E]) Close(ctx context.Context)
type TopicConfig ¶
type XDGSCRAMClient ¶
type XDGSCRAMClient struct { *scram.Client *scram.ClientConversation scram.HashGeneratorFcn }
func (*XDGSCRAMClient) Begin ¶
func (x *XDGSCRAMClient) Begin(userName, password, authzID string) (err error)
func (*XDGSCRAMClient) Done ¶
func (x *XDGSCRAMClient) Done() bool
Click to show internal directories.
Click to hide internal directories.