cmq

package module
v0.0.0-...-dc219fa Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

README

Tencent Cloud CMQ SDK For Go

Getting Started

package main

import (
	"encoding/json"
	"fmt"

	cmq "github.com/zzzhr1990/qcmq"
)

const (
	secretID           = "YOUR_SECRET_ID"
	secretKey          = "YOUR_SECRET_KEY"
	queueName          = "YOUR_QUEUE_NAME"
	pollingWaitSeconds = 1
)

func main() {
	// create a CMQ client
	client := cmq.NewClient(secretID, secretKey, cmq.RegionGuangzhou, cmq.InternetAccess)

	// send a message
	sendMsgReq := &cmq.SendMessageRequest{
		QueueName:   cmq.String(queueName),
		MessageBody: cmq.String("hello world"),
	}
	sendMsgResp, err := client.SendMessage(sendMsgReq)
	if err != nil {
		panic(err)
	}
	data, err := json.Marshal(*sendMsgResp)
	if err != nil {
		panic(err)
	}
	fmt.Println(string(data))

	// consume a message
	recvMsgReq := &cmq.ReceiveMessageRequest{
		QueueName:          cmq.String(queueName),
		PollingWaitSeconds: cmq.Int(pollingWaitSeconds),
	}
	recvMsgResp, err := client.ReceiveMessage(recvMsgReq)
	if err != nil {
		panic(err)
	}
	data, err = json.Marshal(*recvMsgResp)
	if err != nil {
		panic(err)
	}
	fmt.Println(string(data))
}

Documetation

APIs

Documentation

Index

Constants

View Source
const (
	InternetAccess = "qcloud"
	IntranetAccess = "tencentyun"
)

specify how to access CMQ (via internet or intranet) @see https://cloud.tencent.com/document/api/406/5853

View Source
const (
	FilterByTags        = 1
	FilterByBindingKeys = 2
)

specify how to route topic messages

View Source
const (
	SubscribeViaHTTP  = "http"
	SubscribeViaQueue = "queue"
)

specify subscription protocol

View Source
const (
	BackoffRetry            = "BACKOFF_RETRY"
	ExponentialBackoffRetry = "EXPONENTIAL_DECAY_RETRY"
)

specify notify strategy

View Source
const (
	ContentTypeJSON = "JSON"
	ContentTypeRaw  = "SIMPLIFIED"
)

specify content type

View Source
const (
	RegionGuangzhou       = "gz"
	RegionShanghai        = "sh"
	RegionBeijing         = "bj"
	RegionHongKong        = "hk"
	RegionChengdu         = "cd"
	RegionCanada          = "ca"
	RegionUSAWest         = "usw"
	RegionUSAEast         = "use"
	RegionIndia           = "in"
	RegionThailand        = "th"
	RegionSingapore       = "sg"
	RegionShanghaiFinance = "shjr"
	RegionShenzhenFinance = "szjr"
)

@see https://cloud.tencent.com/document/product/406/12667

Variables

This section is empty.

Functions

func Int

func Int(i int) *int

Int returns a pointer to the int value passed in

func Int64

func Int64(i int64) *int64

Int64 returns a pointer to the int64 value passed in

func String

func String(s string) *string

String returns a pointer to the string value passed in

func StringSlice

func StringSlice(s []string) *[]string

StringSlice returns a pointer to the string slice value passed in

Types

type BatchDeleteMessageRequest

type BatchDeleteMessageRequest struct {
	QueueName      *string   `json:"queueName"`
	ReceiptHandles *[]string `json:"receiptHandle.n"`
}

BatchDeleteMessageRequest represents a BatchDeleteMessage request

type BatchDeleteMessageResponse

type BatchDeleteMessageResponse struct {
	Code      *int    `json:"code"`
	Message   *string `json:"message"`
	RequestID *string `json:"requestId"`
	ErrorList *[]struct {
		Code          int    `json:"code"`
		Message       string `json:"message"`
		ReceiptHandle string `json:"receiptHandle"`
	} `json:"errorList"`
}

BatchDeleteMessageResponse represents a BatchDeleteMessage response

type BatchPublishMessageRequest

type BatchPublishMessageRequest struct {
	TopicName   *string   `json:"topicName"`
	Messages    *[]string `json:"msgBody.n"`
	MessageTags *[]string `json:"msgTag.n"`
	RoutingKey  *string   `json:"routingKey"`
}

BatchPublishMessageRequest represents a BatchPublishMessage request

type BatchPublishMessageResponse

type BatchPublishMessageResponse struct {
	Code        *int    `json:"code"`
	Message     *string `json:"message"`
	RequestID   *string `json:"requestId"`
	MessageList *[]struct {
		MessageID string `json:"msgId"`
	} `json:"msgList"`
}

BatchPublishMessageResponse represents a BatchPublishMessage response

type BatchReceiveMessageRequest

type BatchReceiveMessageRequest struct {
	QueueName          *string `json:"queueName"`
	Count              *int    `json:"numOfMsg"`
	PollingWaitSeconds *int    `json:"pollingWaitSeconds"`
}

BatchReceiveMessageRequest represents a BatchReceiveMessage request

type BatchReceiveMessageResponse

type BatchReceiveMessageResponse struct {
	Code        *int    `json:"code"`
	Message     *string `json:"message"`
	RequestID   *string `json:"requestId"`
	MessageList *[]struct {
		MessageBody      string `json:"msgBody"`
		MessageID        string `json:"msgId"`
		ReceiptHandle    string `json:"receiptHandle"`
		EnqueueTime      int64  `json:"enqueueTime"`
		FirstDequeueTime int64  `json:"firstDequeueTime"`
		NextVisibleTime  int64  `json:"nextVisibleTime"`
		DequeueCount     int    `json:"dequeueCount"`
	} `json:"msgInfoList"`
}

BatchReceiveMessageResponse represents a BatchReceiveMessage response

type BatchSendMessageRequest

type BatchSendMessageRequest struct {
	QueueName    *string   `json:"queueName"`
	Messages     *[]string `json:"msgBody.n"`
	DelaySeconds *int      `json:"delaySeconds"`
}

BatchSendMessageRequest represents a BatchSendMessage request

type BatchSendMessageResponse

type BatchSendMessageResponse struct {
	Code        *int    `json:"code"`
	Message     *string `json:"message"`
	RequestID   *string `json:"requestId"`
	MessageList *[]struct {
		MessageID string `json:"msgId"`
	} `json:"msgList"`
}

BatchSendMessageResponse represents a BatchSendMessage response

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client represents a CMQ client

func NewClient

func NewClient(secretID, secretKey, region, net string) *Client

NewClient creates a new CMQ client

func (*Client) BatchDeleteMessage

func (c *Client) BatchDeleteMessage(req *BatchDeleteMessageRequest) (*BatchDeleteMessageResponse, error)

BatchDeleteMessage delete multiple messages from the specified queue

func (*Client) BatchPublishMessage

func (c *Client) BatchPublishMessage(req *BatchPublishMessageRequest) (*BatchPublishMessageResponse, error)

BatchPublishMessage publish multiple messages to the specified topic

func (*Client) BatchReceiveMessage

func (c *Client) BatchReceiveMessage(req *BatchReceiveMessageRequest) (*BatchReceiveMessageResponse, error)

BatchReceiveMessage consumes multiple messages from the specified queue

func (*Client) BatchSendMessage

func (c *Client) BatchSendMessage(req *BatchSendMessageRequest) (*BatchSendMessageResponse, error)

BatchSendMessage sends multiple messages to the specified queue

func (*Client) CreateQueue

func (c *Client) CreateQueue(req *CreateQueueRequest) (*CreateQueueResponse, error)

CreateQueue creates a CMQ queue

func (*Client) CreateTopic

func (c *Client) CreateTopic(req *CreateTopicRequest) (*CreateTopicResponse, error)

CreateTopic creates a new topic

func (*Client) DeleteMessage

func (c *Client) DeleteMessage(req *DeleteMessageRequest) (*DeleteMessageResponse, error)

DeleteMessage delete a message from the specified queue

func (*Client) DeleteQueue

func (c *Client) DeleteQueue(req *DeleteQueueRequest) (*DeleteQueueResponse, error)

DeleteQueue deletes a queue

func (*Client) DeleteTopic

func (c *Client) DeleteTopic(req *DeleteTopicRequest) (*DeleteTopicResponse, error)

DeleteTopic delete a specified topic

func (*Client) GetQueueAttributes

func (c *Client) GetQueueAttributes(req *GetQueueAttributesRequest) (*GetQueueAttributesResponse, error)

GetQueueAttributes gets queue attributes

func (*Client) GetSubscriptionAttributes

func (c *Client) GetSubscriptionAttributes(req *GetSubscriptionAttributesRequest) (*GetSubscriptionAttributesResponse, error)

GetSubscriptionAttributes get attributes of the specified subscription

func (*Client) GetTopicAttributes

func (c *Client) GetTopicAttributes(req *GetTopicAttributesRequest) (*GetTopicAttributesResponse, error)

GetTopicAttributes gets attributes of the specified topic

func (*Client) ListQueue

func (c *Client) ListQueue(req *ListQueueRequest) (*ListQueueResponse, error)

ListQueue lists all queue created

func (*Client) ListSubscriptionByTopic

func (c *Client) ListSubscriptionByTopic(req *ListSubscriptionByTopicRequest) (*ListSubscriptionByTopicResponse, error)

ListSubscriptionByTopic lists all subscriptions of the specified topic

func (*Client) ListTopic

func (c *Client) ListTopic(req *ListTopicRequest) (*ListTopicResponse, error)

ListTopic lists all topics created

func (*Client) PublishMessage

func (c *Client) PublishMessage(req *PublishMessageRequest) (*PublishMessageResponse, error)

PublishMessage publish a message to the specified topic

func (*Client) ReceiveMessage

func (c *Client) ReceiveMessage(req *ReceiveMessageRequest) (*ReceiveMessageResponse, error)

ReceiveMessage consumes a message from the specified queue

func (*Client) SendMessage

func (c *Client) SendMessage(req *SendMessageRequest) (*SendMessageResponse, error)

SendMessage sends a message to the specified queue

func (*Client) SetQueueAttributes

func (c *Client) SetQueueAttributes(req *SetQueueAttributesRequest) (*SetQueueAttributesResponse, error)

SetQueueAttributes sets queue attributes

func (*Client) SetSubscriptionAttributes

func (c *Client) SetSubscriptionAttributes(req *SetSubscriptionAttributesRequest) (*SetSubscriptionAttributesResponse, error)

SetSubscriptionAttributes update attributes of the specified subscription

func (*Client) SetTopicAttributes

func (c *Client) SetTopicAttributes(req *SetTopicAttributesRequest) (*SetTopicAttributesResponse, error)

SetTopicAttributes updates a topic's attributes

func (*Client) Subscribe

func (c *Client) Subscribe(req *SubscribeRequest) (*SubscribeResponse, error)

Subscribe create a new subscription of the specified topic

func (*Client) Unsubscribe

func (c *Client) Unsubscribe(req *UnsubscribeRequest) (*UnsubscribeResponse, error)

Unsubscribe delete a subscription of the specified topic

func (*Client) WithHTTPClient

func (c *Client) WithHTTPClient(client *http.Client) *Client

WithHTTPClient sets a user-defined HTTP client value returning a Client pointer for chaining

type CreateQueueRequest

type CreateQueueRequest struct {
	QueueName               *string `json:"queueName"`
	MaxMessagePileUpNum     *int    `json:"maxMsgHeapNum"`
	PollingWaitSeconds      *int    `json:"pollingWaitSeconds"`
	VisibilityTimeout       *int    `json:"visibilityTimeout"`
	MaxMessageSize          *int    `json:"maxMsgSize"`
	MessageRetentionSeconds *int    `json:"msgRetentionSeconds"`
	RewindSeconds           *int    `json:"rewindSeconds"`
}

CreateQueueRequest represents a CreateQueue request

type CreateQueueResponse

type CreateQueueResponse struct {
	Code      *int    `json:"code"`
	Message   *string `json:"message"`
	RequestID *string `json:"requestId"`
	QueueID   *string `json:"queueId"`
}

CreateQueueResponse represents a CreateQueue response

type CreateTopicRequest

type CreateTopicRequest struct {
	TopicName      *string `json:"topicName"`
	MaxMessageSize *int    `json:"maxMsgSize"`
	FilterType     *int    `json:"filterType"`
}

CreateTopicRequest represents a CreateTopic request

type CreateTopicResponse

type CreateTopicResponse struct {
	Code      *int    `json:"code"`
	Message   *string `json:"message"`
	RequestID *string `json:"requestId"`
	TopicID   *string `json:"topicId"`
}

CreateTopicResponse represents a CreateTopic response

type DeleteMessageRequest

type DeleteMessageRequest struct {
	QueueName     *string `json:"queueName"`
	ReceiptHandle *string `json:"receiptHandle"`
}

DeleteMessageRequest represents a DeleteMessage request

type DeleteMessageResponse

type DeleteMessageResponse struct {
	Code      *int    `json:"code"`
	Message   *string `json:"message"`
	RequestID *string `json:"requestId"`
}

DeleteMessageResponse represents a DeleteMessage response

type DeleteQueueRequest

type DeleteQueueRequest struct {
	QueueName *string `json:"queueName"`
}

DeleteQueueRequest represents a DeleteQueue request

type DeleteQueueResponse

type DeleteQueueResponse struct {
	Code      *int    `json:"code"`
	Message   *string `json:"message"`
	RequestID *string `json:"requestId"`
}

DeleteQueueResponse represents a DeleteQueue response

type DeleteTopicRequest

type DeleteTopicRequest struct {
	TopicName *string `json:"topicName"`
}

DeleteTopicRequest represents a DeleteTopic request

type DeleteTopicResponse

type DeleteTopicResponse struct {
	Code      *int    `json:"code"`
	Message   *string `json:"message"`
	RequestID *string `json:"requestId"`
}

DeleteTopicResponse represents a DeleteTopic response

type GetQueueAttributesRequest

type GetQueueAttributesRequest struct {
	QueueName *string `json:"queueName"`
}

GetQueueAttributesRequest represents a GetQueueAttributes request

type GetQueueAttributesResponse

type GetQueueAttributesResponse struct {
	Code                    *int    `json:"code"`
	Message                 *string `json:"message"`
	RequestID               *string `json:"requestId"`
	MaxMessagePileUpNum     *int    `json:"maxMsgHeapNum"`
	PollingWaitSeconds      *int    `json:"pollingWaitSeconds"`
	VisibilityTimeout       *int    `json:"visibilityTimeout"`
	MaxMessageSize          *int    `json:"maxMsgSize"`
	MessageRetentionSeconds *int    `json:"msgRetentionSeconds"`
	CreateTime              *int64  `json:"createTime"`
	LastModifyTime          *int64  `json:"lastModifyTime"`
	ActiveMessageNum        *int    `json:"activeMsgNum"`
	InactiveMessageNum      *int    `json:"inactiveMsgNum"`
	RewindSeconds           *int    `json:"rewindSeconds"`
	RewindMessageNum        *int    `json:"rewindmsgNum"`
	MinMessageTime          *int    `json:"minMsgTime"`
}

GetQueueAttributesResponse represents a GetQueueAttributes response

type GetSubscriptionAttributesRequest

type GetSubscriptionAttributesRequest struct {
	TopicName        *string `json:"topicName"`
	SubscriptionName *string `json:"subscriptionName"`
}

GetSubscriptionAttributesRequest represents a GetSubscriptionAttributes request

type GetSubscriptionAttributesResponse

type GetSubscriptionAttributesResponse struct {
	Code                *int      `json:"code"`
	Message             *string   `json:"message"`
	RequestID           *string   `json:"requestId"`
	TopicOwner          *string   `json:"topicOwner"`
	MessageCount        *int      `json:"msgCount"`
	Protocol            *string   `json:"protocol"`
	Endpoint            *string   `json:"endpoint"`
	NotifyStrategy      *string   `json:"notifyStrategy"`
	NotifyContentFormat *string   `json:"notifyContentFormat"`
	CreateTime          *int64    `json:"createTime"`
	LastModifyTime      *int64    `json:"lastModifyTime"`
	BindingKeys         *[]string `json:"bindingKey"`
}

GetSubscriptionAttributesResponse represents a GetSubscriptionAttributes response

type GetTopicAttributesRequest

type GetTopicAttributesRequest struct {
	TopicName *string `json:"topicName"`
}

GetTopicAttributesRequest represents a GetTopicAttributes request

type GetTopicAttributesResponse

type GetTopicAttributesResponse struct {
	Code                    *int    `json:"code"`
	Message                 *string `json:"message"`
	RequestID               *string `json:"requestId"`
	MessageCount            *int    `json:"msgCount"`
	MaxMessageSize          *int    `json:"maxMsgSize"`
	MessageRetentionSeconds *int    `json:"msgRetentionSeconds"`
	CreateTime              *int64  `json:"createTime"`
	LastModifyTime          *int64  `json:"lastModifyTime"`
	FilterType              *int    `json:"filterType"`
}

GetTopicAttributesResponse represents a GetTopicAttributes response

type ListQueueRequest

type ListQueueRequest struct {
	Keyword *string `json:"searchWord"`
	Offset  *int    `json:"offset"`
	Limit   *int    `json:"limit"`
}

ListQueueRequest represents a ListQueue request

type ListQueueResponse

type ListQueueResponse struct {
	Code      *int    `json:"code"`
	Message   *string `json:"message"`
	RequestID *string `json:"requestId"`
	Count     *int    `json:"totalCount"`
	QueueList *[]struct {
		QueueID   string `json:"queueId"`
		QueueName string `json:"queueName"`
	} `json:"queueList"`
}

ListQueueResponse represents a ListQueue response

type ListSubscriptionByTopicRequest

type ListSubscriptionByTopicRequest struct {
	TopicName *string `json:"topicName"`
	Keyword   *string `json:"searchWord"`
	Offset    *int    `json:"offset"`
	Limit     *int    `json:"limit"`
}

ListSubscriptionByTopicRequest represents a ListSubscriptionByTopic request

type ListSubscriptionByTopicResponse

type ListSubscriptionByTopicResponse struct {
	Code             *int    `json:"code"`
	Message          *string `json:"message"`
	RequestID        *string `json:"requestId"`
	Count            *int    `json:"totalCount"`
	SubscriptionList *[]struct {
		SubscriptionID   string `json:"subscriptionId"`
		SubscriptionName string `json:"subscriptionName"`
		Protocol         string `json:"protocol"`
		Endpoint         string `json:"endpoint"`
	} `json:"subscriptionList"`
}

ListSubscriptionByTopicResponse represents a ListSubscriptionByTopic response

type ListTopicRequest

type ListTopicRequest struct {
	Keyword *string `json:"searchWord"`
	Offset  *int    `json:"offset"`
	Limit   *int    `json:"limit"`
}

ListTopicRequest represents a ListTopic request

type ListTopicResponse

type ListTopicResponse struct {
	Code      *int    `json:"code"`
	Message   *string `json:"message"`
	RequestID *string `json:"requestId"`
	Count     *int    `json:"totalCount"`
	TopicList *[]struct {
		TopicID   string `json:"topicId"`
		TopicName string `json:"topicName"`
	} `json:"topicList"`
}

ListTopicResponse represents a ListTopic response

type PublishMessageRequest

type PublishMessageRequest struct {
	TopicName   *string   `json:"topicName"`
	MessageBody *string   `json:"msgBody"`
	MessageTags *[]string `json:"msgTag.n"`
	RoutingKey  *string   `json:"routingKey"`
}

PublishMessageRequest represents a PublishMessage request

type PublishMessageResponse

type PublishMessageResponse struct {
	Code      *int    `json:"code"`
	Message   *string `json:"message"`
	RequestID *string `json:"requestId"`
	MessageID *string `json:"msgId"`
}

PublishMessageResponse represents a PublishMessage response

type ReceiveMessageRequest

type ReceiveMessageRequest struct {
	QueueName          *string `json:"queueName"`
	PollingWaitSeconds *int    `json:"pollingWaitSeconds"`
}

ReceiveMessageRequest represents a ReceiveMessage request

type ReceiveMessageResponse

type ReceiveMessageResponse struct {
	Code             *int    `json:"code"`
	Message          *string `json:"message"`
	RequestID        *string `json:"requestId"`
	MessageBody      *string `json:"msgBody"`
	MessageID        *string `json:"msgId"`
	ReceiptHandle    *string `json:"receiptHandle"`
	EnqueueTime      *int64  `json:"enqueueTime"`
	FirstDequeueTime *int64  `json:"firstDequeueTime"`
	NextVisibleTime  *int64  `json:"nextVisibleTime"`
	DequeueCount     *int    `json:"dequeueCount"`
}

ReceiveMessageResponse represents a ReceiveMessage response

type SendMessageRequest

type SendMessageRequest struct {
	QueueName    *string `json:"queueName"`
	MessageBody  *string `json:"msgBody"`
	DelaySeconds *int    `json:"delaySeconds"`
}

SendMessageRequest represents a SendMessage request

type SendMessageResponse

type SendMessageResponse struct {
	Code      *int    `json:"code"`
	Message   *string `json:"message"`
	RequestID *string `json:"requestId"`
	MessageID *string `json:"msgId"`
}

SendMessageResponse represents a SendMessage response

type SetQueueAttributesRequest

type SetQueueAttributesRequest struct {
	QueueName               *string `json:"queueName"`
	MaxMessagePileUpNum     *int    `json:"maxMsgHeapNum"`
	PollingWaitSeconds      *int    `json:"pollingWaitSeconds"`
	VisibilityTimeout       *int    `json:"visibilityTimeout"`
	MaxMessageSize          *int    `json:"maxMsgSize"`
	MessageRetentionSeconds *int    `json:"msgRetentionSeconds"`
	RewindSeconds           *int    `json:"rewindSeconds"`
}

SetQueueAttributesRequest represents a SetQueueAttributes request

type SetQueueAttributesResponse

type SetQueueAttributesResponse struct {
	Code                    *int    `json:"code"`
	Message                 *string `json:"message"`
	RequestID               *string `json:"requestId"`
	MaxMessagePileUpNum     *int    `json:"maxMsgHeapNum"`
	PollingWaitSeconds      *int    `json:"pollingWaitSeconds"`
	VisibilityTimeout       *int    `json:"visibilityTimeout"`
	MaxMessageSize          *int    `json:"maxMsgSize"`
	MessageRetentionSeconds *int    `json:"msgRetentionSeconds"`
	RewindSeconds           *int    `json:"rewindSeconds"`
}

SetQueueAttributesResponse represents a SetQueueAttributes response

type SetSubscriptionAttributesRequest

type SetSubscriptionAttributesRequest struct {
	TopicName           *string   `json:"topicName"`
	SubscriptionName    *string   `json:"subscriptionName"`
	NotifyStrategy      *string   `json:"notifyStrategy"`
	NotifyContentFormat *string   `json:"notifyContentFormat"`
	FilterTags          *[]string `json:"filterTag.n"`
	BindingKeys         *[]string `json:"bindingKey.n"`
}

SetSubscriptionAttributesRequest represents a SetSubscriptionAttributes request

type SetSubscriptionAttributesResponse

type SetSubscriptionAttributesResponse struct {
	Code      *int    `json:"code"`
	Message   *string `json:"message"`
	RequestID *string `json:"requestId"`
}

SetSubscriptionAttributesResponse represents a SetSubscriptionAttributes response

type SetTopicAttributesRequest

type SetTopicAttributesRequest struct {
	TopicName      *string `json:"topicName"`
	MaxMessageSize *int    `json:"maxMsgSize"`
}

SetTopicAttributesRequest represents a SetTopicAttributes request

type SetTopicAttributesResponse

type SetTopicAttributesResponse struct {
	Code      *int    `json:"code"`
	Message   *string `json:"message"`
	RequestID *string `json:"requestId"`
}

SetTopicAttributesResponse represents a SetTopicAttributes response

type SubscribeRequest

type SubscribeRequest struct {
	TopicName           *string   `json:"topicName"`
	SubscriptionName    *string   `json:"subscriptionName"`
	Protocol            *string   `json:"protocol"`
	Endpoint            *string   `json:"endpoint"`
	NotifyStrategy      *string   `json:"notifyStrategy"`
	NotifyContentFormat *string   `json:"notifyContentFormat"`
	FilterTags          *[]string `json:"filterTag.n"`
	BindingKeys         *[]string `json:"bindingKey.n"`
}

SubscribeRequest represents a Subscribe request

type SubscribeResponse

type SubscribeResponse struct {
	Code      *int    `json:"code"`
	Message   *string `json:"message"`
	RequestID *string `json:"requestId"`
}

SubscribeResponse represents a Subscribe response

type UnsubscribeRequest

type UnsubscribeRequest struct {
	TopicName        *string `json:"topicName"`
	SubscriptionName *string `json:"subscriptionName"`
}

UnsubscribeRequest represents a Unsubscribe request

type UnsubscribeResponse

type UnsubscribeResponse struct {
	Code      *int    `json:"code"`
	Message   *string `json:"message"`
	RequestID *string `json:"requestId"`
}

UnsubscribeResponse represents a Unsubscribe response

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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