Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateOpts ¶
type CreateOpts struct { Name string `json:"id" required:"true"` Partition int `json:"partition,omitempty"` Replication int `json:"replication,omitempty"` SyncReplication bool `json:"sync_replication,omitempty"` RetentionTime int `json:"retention_time,omitempty"` SyncMessageFlush bool `json:"sync_message_flush,omitempty"` }
func (CreateOpts) ToTopicCreateMap ¶
func (opts CreateOpts) ToTopicCreateMap() (map[string]interface{}, error)
type CreateOptsBuilder ¶
type CreateResult ¶
func Create ¶
func Create(client *golangsdk.ServiceClient, opts CreateOptsBuilder, instanceId string) (r CreateResult)
func (CreateResult) Extract ¶
func (r CreateResult) Extract() (*TopicName, error)
type DeleteOpts ¶
type DeleteOpts struct {
Topics []string `json:"topics" required:"true"`
}
func (DeleteOpts) ToTopicDeleteMap ¶
func (opts DeleteOpts) ToTopicDeleteMap() (map[string]interface{}, error)
type DeleteOptsBuilder ¶
type DeleteResult ¶
func Delete ¶
func Delete(client *golangsdk.ServiceClient, opts DeleteOptsBuilder, instanceId string) (r DeleteResult)
func (DeleteResult) Extract ¶
func (r DeleteResult) Extract() ([]TopicDelete, error)
type Parameters ¶
type Topic ¶
type Topic struct { Size int `json:"size"` RemainPartitions int `json:"remain_partitions"` MaxPartitions int `json:"max_partitions"` Topics []Parameters `json:"topics"` }
type TopicDelete ¶
Click to show internal directories.
Click to hide internal directories.