models

package
v1.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2025 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddRateLimitPracticeRule

type AddRateLimitPracticeRule struct {
	URI     string `json:"URI"`
	Scope   string `json:"scope"`
	Limit   int    `json:"limit"`
	Comment string `json:"comment"`
	Action  string `json:"action"`
}

type CreateRateLimitPracticeInput

type CreateRateLimitPracticeInput struct {
	Name       string                       `json:"name"`
	Visibility string                       `json:"visibility"`
	Rules      []RateLimitPracticeRuleInput `json:"rules"`
}

type DisplayObject

type DisplayObject struct {
	ID           string `json:"id,omitempty"`
	Name         string `json:"name,omitempty"`
	Type         string `json:"type,omitempty"`
	SubType      string `json:"subType,omitempty"`
	ObjectStatus string `json:"objectStatus,omitempty"`
}

type DisplayObjects

type DisplayObjects []DisplayObject

type RateLimitPractice

type RateLimitPractice struct {
	ID           string                 `json:"id"`
	Name         string                 `json:"name"`
	PracticeType string                 `json:"practiceType"`
	Visibility   string                 `json:"visibility,omitempty"`
	ObjectStatus string                 `json:"objectStatus"`
	Category     string                 `json:"category"`
	Default      bool                   `json:"default"`
	UsedBy       int                    `json:"usedBy"`
	Rules        RateLimitPracticeRules `json:"rules"`
}

type RateLimitPracticeRule

type RateLimitPracticeRule struct {
	ID      string `json:"id"`
	URI     string `json:"URI"`
	Scope   string `json:"scope"`
	Limit   int    `json:"limit"`
	Comment string `json:"comment"`
	Action  string `json:"action"`
}

type RateLimitPracticeRuleInput

type RateLimitPracticeRuleInput struct {
	URI     string `json:"URI"`
	Scope   string `json:"scope"`
	Limit   int    `json:"limit"`
	Comment string `json:"comment"`
	Action  string `json:"action"`
}

type RateLimitPracticeRules

type RateLimitPracticeRules []RateLimitPracticeRule

func (RateLimitPracticeRules) ToSchema

type SchemaRateLimitPracticeRule

type SchemaRateLimitPracticeRule struct {
	ID      string `json:"id"`
	URI     string `json:"uri"`
	Scope   string `json:"scope"`
	Limit   int    `json:"limit"`
	Comment string `json:"comment"`
	Action  string `json:"action"`
}

func (*SchemaRateLimitPracticeRule) GetUpdateRateLimitPracticeRule

func (rule *SchemaRateLimitPracticeRule) GetUpdateRateLimitPracticeRule(newRule SchemaRateLimitPracticeRule) (UpdateRateLimitPracticeRule, bool)

type UpdateRateLimitPracticeInput

type UpdateRateLimitPracticeInput struct {
	Name        string                        `json:"name,omitempty"`
	Visibility  string                        `json:"visibility,omitempty"`
	AddRules    []AddRateLimitPracticeRule    `json:"addRules,omitempty"`
	RemoveRules []string                      `json:"removeRules,omitempty"`
	UpdateRules []UpdateRateLimitPracticeRule `json:"updateRules,omitempty"`
}

type UpdateRateLimitPracticeRule

type UpdateRateLimitPracticeRule struct {
	ID      string `json:"id"`
	URI     string `json:"URI"`
	Scope   string `json:"scope"`
	Limit   int    `json:"limit"`
	Comment string `json:"comment"`
	Action  string `json:"action"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL