Documentation ¶
Overview ¶
Package msk implements the required IAM auth used by AWS' managed Kafka platform to be used with the Surama kafka producer.
Further details on how the SASL connector works can be viewed here:
https://github.com/aws/aws-msk-iam-auth#details
Index ¶
Constants ¶
View Source
const (
Mechanism = "AWS_MSK_IAM"
)
Variables ¶
Functions ¶
func NewIAMSASLClient ¶
func NewIAMSASLClient(mskhostname, region, useragent string) sarama.SCRAMClient
Types ¶
type IAMSASLClient ¶
type IAMSASLClient struct { MSKHostname string Region string UserAgent string // contains filtered or unexported fields }
func (*IAMSASLClient) Begin ¶
func (sc *IAMSASLClient) Begin(username, password, _ string) error
func (*IAMSASLClient) Done ¶
func (sc *IAMSASLClient) Done() bool
Click to show internal directories.
Click to hide internal directories.