Documentation ¶
Index ¶
- type AzureEventHubs
- func (a *AzureEventHubs) Init(metadata bindings.Metadata) error
- func (a *AzureEventHubs) Invoke(req *bindings.InvokeRequest) (*bindings.InvokeResponse, error)
- func (a *AzureEventHubs) Operations() []bindings.OperationKind
- func (a *AzureEventHubs) Read(handler func(*bindings.ReadResponse) ([]byte, error)) error
- func (a *AzureEventHubs) RegisterEventProcessor(handler func(*bindings.ReadResponse) ([]byte, error)) error
- func (a *AzureEventHubs) RegisterPartitionedEventProcessor(handler func(*bindings.ReadResponse) ([]byte, error)) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureEventHubs ¶
type AzureEventHubs struct {
// contains filtered or unexported fields
}
AzureEventHubs allows sending/receiving Azure Event Hubs events
func NewAzureEventHubs ¶
func NewAzureEventHubs(logger logger.Logger) *AzureEventHubs
NewAzureEventHubs returns a new Azure Event hubs instance
func (*AzureEventHubs) Init ¶
func (a *AzureEventHubs) Init(metadata bindings.Metadata) error
Init performs metadata init
func (*AzureEventHubs) Invoke ¶
func (a *AzureEventHubs) Invoke(req *bindings.InvokeRequest) (*bindings.InvokeResponse, error)
Write posts an event hubs message
func (*AzureEventHubs) Operations ¶
func (a *AzureEventHubs) Operations() []bindings.OperationKind
func (*AzureEventHubs) Read ¶
func (a *AzureEventHubs) Read(handler func(*bindings.ReadResponse) ([]byte, error)) error
Read gets messages from eventhubs in a non-blocking fashion
func (*AzureEventHubs) RegisterEventProcessor ¶
func (a *AzureEventHubs) RegisterEventProcessor(handler func(*bindings.ReadResponse) ([]byte, error)) error
RegisterEventProcessor - receive eventhub messages by eventprocessor host by balancing partitions
func (*AzureEventHubs) RegisterPartitionedEventProcessor ¶
func (a *AzureEventHubs) RegisterPartitionedEventProcessor(handler func(*bindings.ReadResponse) ([]byte, error)) error
RegisterPartitionedEventProcessor - receive eventhub messages by partitionID
Click to show internal directories.
Click to hide internal directories.