Documentation ¶
Index ¶
- Variables
- type Consumer
- type EventListener
- func (el *EventListener) GetEventName() string
- func (el *EventListener) GetEventSourceName() string
- func (el *EventListener) GetEventSourceType() apicommon.EventSourceType
- func (el *EventListener) StartListening(ctx context.Context, dispatch func([]byte, ...eventsourcecommon.Options) error) error
- func (listener *EventListener) ValidateEventSource(ctx context.Context) error
- 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 Consumer ¶ added in v1.0.0
type Consumer struct {
// contains filtered or unexported fields
}
Consumer represents a Sarama consumer group consumer
func (*Consumer) Cleanup ¶ added in v1.0.0
func (consumer *Consumer) Cleanup(sarama.ConsumerGroupSession) error
Cleanup is run at the end of a session, once all ConsumeClaim goroutines have exited
func (*Consumer) ConsumeClaim ¶ added in v1.0.0
func (consumer *Consumer) ConsumeClaim(session sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error
ConsumeClaim must start a consumer loop of ConsumerGroupClaim's Messages().
type EventListener ¶
type EventListener struct { EventSourceName string EventName string KafkaEventSource v1alpha1.KafkaEventSource Metrics *metrics.Metrics }
EventListener implements Eventing kafka event source
func (*EventListener) GetEventName ¶
func (el *EventListener) GetEventName() string
GetEventName returns name of event
func (*EventListener) GetEventSourceName ¶
func (el *EventListener) GetEventSourceName() string
GetEventSourceName returns name of event source
func (*EventListener) GetEventSourceType ¶
func (el *EventListener) GetEventSourceType() apicommon.EventSourceType
GetEventSourceType return type of event server
func (*EventListener) StartListening ¶
func (el *EventListener) StartListening(ctx context.Context, dispatch func([]byte, ...eventsourcecommon.Options) error) error
StartListening starts listening events
func (*EventListener) ValidateEventSource ¶
func (listener *EventListener) ValidateEventSource(ctx context.Context) error
ValidateEventSource validates the gateway event source
type XDGSCRAMClient ¶ added in v1.6.0
type XDGSCRAMClient struct { *scram.Client *scram.ClientConversation scram.HashGeneratorFcn }
func (*XDGSCRAMClient) Begin ¶ added in v1.6.0
func (x *XDGSCRAMClient) Begin(userName, password, authzID string) (err error)
func (*XDGSCRAMClient) Done ¶ added in v1.6.0
func (x *XDGSCRAMClient) Done() bool
Click to show internal directories.
Click to hide internal directories.