subscriptions

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(client *golangsdk.ServiceClient, subscriptionUrn string) (err error)

Types

type CreateOpts added in v0.5.2

type CreateOpts struct {
	// Message endpoint
	Endpoint string `json:"endpoint" required:"true"`
	// Protocol of the message endpoint
	Protocol string `json:"protocol" required:"true"`
	// Description of the subscription
	Remark string `json:"remark,omitempty"`
}

type CreateResponse added in v0.9.4

type CreateResponse struct {
	RequestID       string `json:"request_id"`
	SubscriptionUrn string `json:"subscription_urn"`
}

func Create

func Create(client *golangsdk.ServiceClient, opts CreateOpts, topicUrn string) (*CreateResponse, error)

type ListOpts added in v0.9.4

type ListOpts struct {
	Offset string `q:"offset,omitempty"`
	Limit  int    `q:"limit,omitempty"`
}

type ListTopicOpts added in v0.9.4

type ListTopicOpts struct {
	TopicUrn string `json:"-"`
	Offset   string `q:"offset,omitempty"`
	Limit    int    `q:"limit,omitempty"`
}

type Subscription

type Subscription struct {
	TopicUrn        string `json:"topic_urn"`
	Protocol        string `json:"protocol"`
	SubscriptionUrn string `json:"subscription_urn"`
	Owner           string `json:"owner"`
	Endpoint        string `json:"endpoint"`
	Remark          string `json:"remark"`
	Status          int    `json:"status"`
}

func List

func List(client *golangsdk.ServiceClient, opts ListOpts) ([]Subscription, error)

List all the subscriptions

func ListTopic added in v0.9.4

func ListTopic(client *golangsdk.ServiceClient, opts ListTopicOpts) ([]Subscription, error)

ListTopic subscriptions of specified topic

Jump to

Keyboard shortcuts

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