Documentation ¶
Index ¶
- func NewAzureStorageQueues(logger logger.Logger) bindings.InputOutputBinding
- type AzureQueueHelper
- func (d *AzureQueueHelper) Close() error
- func (d *AzureQueueHelper) Init(ctx context.Context, meta bindings.Metadata) (*storageQueuesMetadata, error)
- func (d *AzureQueueHelper) Read(ctx context.Context, consumer *consumer) error
- func (d *AzureQueueHelper) Write(ctx context.Context, data []byte, ttl *time.Duration) error
- type AzureStorageQueues
- func (a *AzureStorageQueues) Close() error
- func (a *AzureStorageQueues) GetComponentMetadata() map[string]string
- func (a *AzureStorageQueues) Init(ctx context.Context, metadata bindings.Metadata) (err error)
- func (a *AzureStorageQueues) Invoke(ctx context.Context, req *bindings.InvokeRequest) (*bindings.InvokeResponse, error)
- func (a *AzureStorageQueues) Operations() []bindings.OperationKind
- func (a *AzureStorageQueues) Read(ctx context.Context, handler bindings.Handler) error
- type QueueHelper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAzureStorageQueues ¶
func NewAzureStorageQueues(logger logger.Logger) bindings.InputOutputBinding
NewAzureStorageQueues returns a new AzureStorageQueues instance.
Types ¶
type AzureQueueHelper ¶
type AzureQueueHelper struct {
// contains filtered or unexported fields
}
AzureQueueHelper concrete impl of queue helper.
func (*AzureQueueHelper) Close ¶
func (d *AzureQueueHelper) Close() error
func (*AzureQueueHelper) Init ¶
func (d *AzureQueueHelper) Init(ctx context.Context, meta bindings.Metadata) (*storageQueuesMetadata, error)
Init sets up this helper.
type AzureStorageQueues ¶
type AzureStorageQueues struct {
// contains filtered or unexported fields
}
AzureStorageQueues is an input/output binding reading from and sending events to Azure Storage queues.
func (*AzureStorageQueues) Close ¶
func (a *AzureStorageQueues) Close() error
func (*AzureStorageQueues) GetComponentMetadata ¶
func (a *AzureStorageQueues) GetComponentMetadata() map[string]string
GetComponentMetadata returns the metadata of the component.
func (*AzureStorageQueues) Init ¶
Init parses connection properties and creates a new Storage Queue client.
func (*AzureStorageQueues) Invoke ¶
func (a *AzureStorageQueues) Invoke(ctx context.Context, req *bindings.InvokeRequest) (*bindings.InvokeResponse, error)
func (*AzureStorageQueues) Operations ¶
func (a *AzureStorageQueues) Operations() []bindings.OperationKind
type QueueHelper ¶
type QueueHelper interface { Init(ctx context.Context, metadata bindings.Metadata) (*storageQueuesMetadata, error) Write(ctx context.Context, data []byte, ttl *time.Duration) error Read(ctx context.Context, consumer *consumer) error Close() error }
QueueHelper enables injection for testnig.
func NewAzureQueueHelper ¶
func NewAzureQueueHelper(logger logger.Logger) QueueHelper
NewAzureQueueHelper creates new helper.
Click to show internal directories.
Click to hide internal directories.