Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateOps ¶
type CreateOps struct { // Indicates the informations of a consumer group. Groups []GroupOps `json:"groups" required:"true"` }
CreateOps is a struct that contains all the parameters.
func (CreateOps) ToGroupCreateMap ¶
ToGroupCreateMap is used for type convert
type CreateOpsBuilder ¶
CreateOpsBuilder is used for creating group parameters. any struct providing the parameters should implement this interface
type CreateResult ¶
type CreateResult struct {
golangsdk.Result
}
CreateResult is a struct that contains all the return parameters of creation
func Create ¶
func Create(client *golangsdk.ServiceClient, queueID string, ops CreateOpsBuilder) (r CreateResult)
Create a group with given parameters.
func (CreateResult) Extract ¶
func (r CreateResult) Extract() ([]GroupCreate, error)
Extract from CreateResult
type DeleteResult ¶
type DeleteResult struct {
golangsdk.ErrResult
}
DeleteResult is a struct which contains the result of deletion
func Delete ¶
func Delete(client *golangsdk.ServiceClient, queueID string, groupID string) (r DeleteResult)
Delete a group by id
type Group ¶
type Group struct { ID string `json:"id"` Name string `json:"name"` ConsumedMessages int `json:"consumed_messages"` AvailableMessages int `json:"available_messages"` ProducedMessages int `json:"produced_messages"` ProducedDeadletters int `json:"produced_deadletters"` AvailableDeadletters int `json:"available_deadletters"` }
Group response
type GroupCreate ¶
GroupCreate response
type GroupOps ¶
type GroupOps struct { // Indicates the name of a consumer group. // A string of 1 to 32 characters that contain // a-z, A-Z, 0-9, hyphens (-), and underscores (_). Name string `json:"name" required:"true"` }
GroupOps is referred by CreateOps
type GroupPage ¶
type GroupPage struct {
pagination.SinglePageBase
}
GroupPage may be embedded in a Page that contains all of the results from an operation at once.
Click to show internal directories.
Click to hide internal directories.