Documentation ¶
Index ¶
- Variables
- type AuthOptions
- type Option
- func WithAuthentication(authentication string) Option
- func WithEnableSASL(enableSASL bool) Option
- func WithEnableSSL(enableSSL bool) Option
- func WithSASLPassword(saslPassword string) Option
- func WithSASLUser(saslUser string) Option
- func WithSSLCaFile(caFile string) Option
- func WithSSLCertFile(certFile string) Option
- func WithSSLKeyFile(keyFile string) Option
- func WithScramAlgorithm(scramAlgorithm string) Option
- type XDGSCRAMClient
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SHA256 scram.HashGeneratorFcn = sha256.New SHA512 scram.HashGeneratorFcn = sha512.New )
Functions ¶
This section is empty.
Types ¶
type AuthOptions ¶
type AuthOptions struct {
// contains filtered or unexported fields
}
func GetAuthOptions ¶
func GetAuthOptions(opts ...Option) *AuthOptions
func (*AuthOptions) CreateTlsConfiguration ¶
func (opts *AuthOptions) CreateTlsConfiguration() (t *tls.Config)
func (*AuthOptions) InitSASLSCRAM ¶
func (opts *AuthOptions) InitSASLSCRAM(conf *sarama.Config)
func (*AuthOptions) InitSSL ¶
func (opts *AuthOptions) InitSSL(config *sarama.Config)
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithAuthentication ¶
func WithEnableSASL ¶
func WithEnableSSL ¶
func WithSASLPassword ¶
func WithSASLUser ¶
func WithSSLCaFile ¶
func WithSSLCertFile ¶
func WithSSLKeyFile ¶
func WithScramAlgorithm ¶
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.