Documentation
¶
Index ¶
- Variables
- func GenerateTopicAndSubName(topic, subscription string) string
- type AWSQueueMessage
- type AWSQueueService
- func (service *AWSQueueService) AckMessage(ctx context.Context, message Message) error
- func (service *AWSQueueService) Close() error
- func (service *AWSQueueService) CreateConsumer() (Consumer, error)
- func (service *AWSQueueService) CreateProducer() (Producer, error)
- func (service *AWSQueueService) ReceiveMessages(ctx context.Context, maxCount int) ([]Message, error)
- func (service *AWSQueueService) SendMessage(ctx context.Context, body string) error
- type Consumer
- type Message
- type Producer
- type QueueService
- type TencentCloudQueueConsumer
- type TencentCloudQueueMessage
- type TencentCloudQueueOption
- func (option TencentCloudQueueOption) CheckAWS() error
- func (option TencentCloudQueueOption) CheckTencentCloud() error
- func (option TencentCloudQueueOption) GetProvider() cloud.Provider
- func (option TencentCloudQueueOption) GetRegion() string
- func (option TencentCloudQueueOption) GetSecretID() string
- func (option TencentCloudQueueOption) GetSecretKey() string
- type TencentCloudQueueProducer
- type TencentCloudQueueService
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTencentCloudQueueServiceTokenEmpty = errors.New("token for tencentcloud queue service is empty") ErrTencentCloudQueueServiceURLEmpty = errors.New("url for tencentcloud queue service is empty") ErrTencentCloudQueueServiceEmptySubscriptionName = errors.New("subscription name for tencentcloud queue service is empty") ErrTencentCloudQueueServiceEmptyTopic = errors.New("topic name for tencentcloud queue service is empty") )
View Source
var ErrAWSQueueNameEmpty = errors.New("aws queue name is empty")
Functions ¶
func GenerateTopicAndSubName ¶
Types ¶
type AWSQueueMessage ¶
type AWSQueueMessage struct {
// contains filtered or unexported fields
}
func (*AWSQueueMessage) Body ¶
func (message *AWSQueueMessage) Body() string
type AWSQueueService ¶
type AWSQueueService struct {
// contains filtered or unexported fields
}
func (*AWSQueueService) AckMessage ¶
func (service *AWSQueueService) AckMessage(ctx context.Context, message Message) error
func (*AWSQueueService) Close ¶
func (service *AWSQueueService) Close() error
func (*AWSQueueService) CreateConsumer ¶
func (service *AWSQueueService) CreateConsumer() (Consumer, error)
func (*AWSQueueService) CreateProducer ¶
func (service *AWSQueueService) CreateProducer() (Producer, error)
func (*AWSQueueService) ReceiveMessages ¶
func (*AWSQueueService) SendMessage ¶
func (service *AWSQueueService) SendMessage(ctx context.Context, body string) error
type QueueService ¶
type QueueService interface { CreateProducer() (Producer, error) CreateConsumer() (Consumer, error) Close() error }
func GetAWSQueueService ¶
func GetAWSQueueService(queueName string, option cloud.Option) (QueueService, error)
func GetQueueService ¶
func GetQueueService(queueOrTopicSubName string, option cloud.Option) (QueueService, error)
func GetTencentCloudQueueService ¶
func GetTencentCloudQueueService(topicSubName string, option cloud.Option) (QueueService, error)
type TencentCloudQueueConsumer ¶
type TencentCloudQueueConsumer struct {
// contains filtered or unexported fields
}
func (*TencentCloudQueueConsumer) AckMessage ¶
func (consumer *TencentCloudQueueConsumer) AckMessage(ctx context.Context, message Message) error
func (*TencentCloudQueueConsumer) Close ¶
func (consumer *TencentCloudQueueConsumer) Close() error
func (*TencentCloudQueueConsumer) ReceiveMessages ¶
type TencentCloudQueueMessage ¶
type TencentCloudQueueMessage struct {
// contains filtered or unexported fields
}
func (*TencentCloudQueueMessage) Body ¶
func (message *TencentCloudQueueMessage) Body() string
type TencentCloudQueueOption ¶
func (TencentCloudQueueOption) CheckAWS ¶
func (option TencentCloudQueueOption) CheckAWS() error
func (TencentCloudQueueOption) CheckTencentCloud ¶
func (option TencentCloudQueueOption) CheckTencentCloud() error
func (TencentCloudQueueOption) GetProvider ¶
func (option TencentCloudQueueOption) GetProvider() cloud.Provider
func (TencentCloudQueueOption) GetRegion ¶
func (option TencentCloudQueueOption) GetRegion() string
func (TencentCloudQueueOption) GetSecretID ¶
func (option TencentCloudQueueOption) GetSecretID() string
func (TencentCloudQueueOption) GetSecretKey ¶
func (option TencentCloudQueueOption) GetSecretKey() string
type TencentCloudQueueProducer ¶
type TencentCloudQueueProducer struct {
// contains filtered or unexported fields
}
func (*TencentCloudQueueProducer) Close ¶
func (producer *TencentCloudQueueProducer) Close() error
func (*TencentCloudQueueProducer) SendMessage ¶
func (producer *TencentCloudQueueProducer) SendMessage(ctx context.Context, body string) error
type TencentCloudQueueService ¶
type TencentCloudQueueService struct {
// contains filtered or unexported fields
}
func (*TencentCloudQueueService) Close ¶
func (service *TencentCloudQueueService) Close() error
func (*TencentCloudQueueService) CreateConsumer ¶
func (service *TencentCloudQueueService) CreateConsumer() (Consumer, error)
func (*TencentCloudQueueService) CreateProducer ¶
func (service *TencentCloudQueueService) CreateProducer() (Producer, error)
Click to show internal directories.
Click to hide internal directories.