kafka

package
v0.0.0-...-d39ca52 Latest Latest
Warning

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

Go to latest
Published: May 5, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger = backend.Logger

Functions

func GetHashGeneratorFn

func GetHashGeneratorFn(authtype string) scram.HashGeneratorFcn

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cfg SimpleClientConfig) (*Client, error)

func (*Client) Close

func (c *Client) Close() error

func (*Client) ReadMessage

func (c *Client) ReadMessage() (*sarama.ConsumerMessage, error)

func (*Client) Subscribe

func (c *Client) Subscribe(topicname string) error

type SimpleClientConfig

type SimpleClientConfig struct {
	BootstrapServers string `json:"bootstrapservers"`
	ClientId         string `json:"clientid"`
	GroupId          string `json:"groupid"`
	ScramAuthType    string `json:"authtype"`
	ScramUsername    string `json:"username"`
	ScramPassword    string `json:"password"`
	UseSslTls        bool   `json:"usetls"`
}

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

func (*XDGSCRAMClient) Step

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