delay_queue

package
v0.0.0-...-be1e383 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DelayMessageRequest

type DelayMessageRequest struct {
	// Required. The name of the DelayQueue component
	ComponentName string `json:"component_name,omitempty"`
	// Required. The pubsub topic
	Topic string `json:"topic,omitempty"`
	// Required. The data which will be published to topic.
	Data []byte `json:"data,omitempty"`
	// The content type for the data (optional).
	DataContentType string `json:"data_content_type,omitempty"`
	// The length of time, in seconds, for which the delivery
	// of this messages is delayed.  Default: 0.
	DelayInSeconds int32 `json:"delay_in_seconds,omitempty"`
	// The metadata passing to pub components
	//
	// metadata property:
	// - key : the key of the message.
	Metadata map[string]string `json:"metadata,omitempty"`
}

DelayMessageRequest is the message to publish

type DelayMessageResponse

type DelayMessageResponse struct {
	// The message identifier
	MessageId string `json:"message_id,omitempty"`
}

DelayMessageResponse is the response

type DelayQueue

type DelayQueue interface {
	PublishDelayMessage(context.Context, *DelayMessageRequest) (*DelayMessageResponse, error)
}

Directories

Path Synopsis
azure

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL