Documentation ¶
Index ¶
- func Delete(client *golangsdk.ServiceClient, gatewayID, throttleID, strategyID string) (err error)
- type CreateOpts
- type ListOpts
- type ThrottlingPage
- type ThrottlingResp
- func Create(client *golangsdk.ServiceClient, opts CreateOpts) (*ThrottlingResp, error)
- func ExtractTrPolicy(r pagination.NewPage) ([]ThrottlingResp, error)
- func List(client *golangsdk.ServiceClient, opts ListOpts) ([]ThrottlingResp, error)
- func Update(client *golangsdk.ServiceClient, opts UpdateOpts) (*ThrottlingResp, error)
- type UpdateOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateOpts ¶
type ThrottlingPage ¶
type ThrottlingPage struct {
pagination.NewSinglePageBase
}
type ThrottlingResp ¶
type ThrottlingResp struct { ID string `json:"id"` CallLimits int `json:"call_limits"` ApplyTime string `json:"apply_time"` AppName string `json:"app_name"` AppID string `json:"app_id"` ObjectID string `json:"object_id"` ObjectType string `json:"object_type"` ObjectName string `json:"object_name"` ThrottleID string `json:"throttle_id"` }
func Create ¶
func Create(client *golangsdk.ServiceClient, opts CreateOpts) (*ThrottlingResp, error)
func ExtractTrPolicy ¶
func ExtractTrPolicy(r pagination.NewPage) ([]ThrottlingResp, error)
func List ¶
func List(client *golangsdk.ServiceClient, opts ListOpts) ([]ThrottlingResp, error)
func Update ¶
func Update(client *golangsdk.ServiceClient, opts UpdateOpts) (*ThrottlingResp, error)
Click to show internal directories.
Click to hide internal directories.