Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateOps ¶
type CreateOps 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"` }
CreateOps is a struct that contains all the parameters.
func (CreateOps) ToSubscriptionCreateMap ¶
type CreateOpsBuilder ¶
CreateOpsBuilder is used for creating subscription parameters. any struct providing the parameters should implement this interface
type CreateResult ¶
type CreateResult struct {
// contains filtered or unexported fields
}
CreateResult contains the response body and error from a Create request.
func Create ¶
func Create(client *golangsdk.ServiceClient, ops CreateOpsBuilder, topicUrn string) (r CreateResult)
Create a subscription with given parameters.
func (CreateResult) Extract ¶
func (r CreateResult) Extract() (*Subscription, error)
Extract will get the subscription object out of the commonResult object.
func (CreateResult) ExtractInto ¶
func (r CreateResult) ExtractInto(v interface{}) error
type DeleteResult ¶
type DeleteResult struct {
golangsdk.ErrResult
}
func Delete ¶
func Delete(client *golangsdk.ServiceClient, subscriptionUrn string) (r DeleteResult)
delete a subscription via subscription urn
type GetResult ¶
type GetResult struct {
// contains filtered or unexported fields
}
func (GetResult) Extract ¶
func (r GetResult) Extract() (*Subscription, error)
Extract will get the subscription object out of the commonResult object.
func (GetResult) ExtractInto ¶
func (r GetResult) ExtractInto(v interface{}) error
type ListResult ¶
type ListResult struct {
golangsdk.Result
}
func ListFromTopic ¶
func ListFromTopic(client *golangsdk.ServiceClient, subscriptionUrn string) (r ListResult)
list all the subscriptions
func (ListResult) Extract ¶
func (lr ListResult) Extract() ([]SubscriptionGet, error)
type Subscription ¶
Click to show internal directories.
Click to hide internal directories.