Documentation ¶
Index ¶
- type AzureQueueHelper
- type AzureStorageQueues
- func (a *AzureStorageQueues) Init(metadata bindings.Metadata) error
- func (a *AzureStorageQueues) Invoke(req *bindings.InvokeRequest) (*bindings.InvokeResponse, error)
- func (a *AzureStorageQueues) Operations() []bindings.OperationKind
- func (a *AzureStorageQueues) Read(handler func(*bindings.ReadResponse) ([]byte, error)) error
- type QueueHelper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureQueueHelper ¶
type AzureQueueHelper struct {
// contains filtered or unexported fields
}
AzureQueueHelper concrete impl of queue helper
func (*AzureQueueHelper) Init ¶
func (d *AzureQueueHelper) Init(accountName string, accountKey string, queueName string, decodeBase64 bool) 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 NewAzureStorageQueues ¶
func NewAzureStorageQueues(logger logger.Logger) *AzureStorageQueues
NewAzureStorageQueues returns a new AzureStorageQueues instance
func (*AzureStorageQueues) Init ¶
func (a *AzureStorageQueues) Init(metadata bindings.Metadata) error
Init parses connection properties and creates a new Storage Queue client
func (*AzureStorageQueues) Invoke ¶
func (a *AzureStorageQueues) Invoke(req *bindings.InvokeRequest) (*bindings.InvokeResponse, error)
func (*AzureStorageQueues) Operations ¶
func (a *AzureStorageQueues) Operations() []bindings.OperationKind
func (*AzureStorageQueues) Read ¶
func (a *AzureStorageQueues) Read(handler func(*bindings.ReadResponse) ([]byte, error)) error
type QueueHelper ¶
type QueueHelper interface { Init(accountName string, accountKey string, queueName string, decodeBase64 bool) error Write(data []byte, ttl *time.Duration) error Read(ctx context.Context, consumer *consumer) 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.