Documentation
¶
Index ¶
- func BudgetCreateCmd(ch *cmdutil.Helper) *cobra.Command
- func BudgetDeleteCmd(ch *cmdutil.Helper) *cobra.Command
- func BudgetShowCmd(ch *cmdutil.Helper) *cobra.Command
- func BudgetUpdateCmd(ch *cmdutil.Helper) *cobra.Command
- func RuleCreateCmd(ch *cmdutil.Helper) *cobra.Command
- func RuleDeleteCmd(ch *cmdutil.Helper) *cobra.Command
- func TrafficCmd(ch *cmdutil.Helper) *cobra.Command
- type TrafficBudget
- type TrafficRuleDisplay
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TrafficBudget ¶
type TrafficBudget struct {
ID string `header:"id" json:"id"`
Name string `header:"name" json:"name"`
Mode string `header:"mode" json:"mode"`
Capacity string `header:"capacity" json:"capacity"`
Rate string `header:"rate" json:"rate"`
Burst string `header:"burst" json:"burst"`
Concurrency string `header:"concurrency" json:"concurrency"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
// contains filtered or unexported fields
}
func (*TrafficBudget) MarshalCSVValue ¶
func (b *TrafficBudget) MarshalCSVValue() any
func (*TrafficBudget) MarshalJSON ¶
func (b *TrafficBudget) MarshalJSON() ([]byte, error)
type TrafficRuleDisplay ¶
type TrafficRuleDisplay struct {
ID string `header:"id" json:"id"`
Kind string `header:"kind" json:"kind"`
Fingerprint string `header:"fingerprint" json:"fingerprint"`
Keyspace string `header:"keyspace" json:"keyspace"`
Tags string `header:"tags" json:"tags"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
// contains filtered or unexported fields
}
func (*TrafficRuleDisplay) MarshalCSVValue ¶
func (r *TrafficRuleDisplay) MarshalCSVValue() any
func (*TrafficRuleDisplay) MarshalJSON ¶
func (r *TrafficRuleDisplay) MarshalJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.