schema

package
v1.7.7 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConcurrencyDTO added in v1.7.0

type ConcurrencyDTO struct {
	UserId       int64         `json:"UserId,string"` // 用户ID
	Limit        int           `json:"Limit"`         // 并发限制
	QueueSize    int           `json:"QueueSize"`     // 当前队列大小
	MaxQueueSize int           `json:"MaxQueueSize"`  // 最大队列大小
	WaitTime     time.Duration `json:"WaitTime"`      // 请求的最大等待时间
}

type ConcurrencyVO added in v1.7.0

type ConcurrencyVO struct {
	Id           int64         `gorm:"primaryKey;autoIncrement:false" json:"Id,string"`
	UserId       int64         `json:"UserId,string"` // 用户ID
	Limit        int           `json:"Limit"`         // 并发限制
	QueueSize    int           `json:"QueueSize"`     // 当前队列大小
	MaxQueueSize int           `json:"MaxQueueSize"`  // 最大队列大小
	WaitTime     time.Duration `json:"WaitTime"`      // 请求的最大等待时间

}

func (ConcurrencyVO) GetDetailVO added in v1.7.0

func (c ConcurrencyVO) GetDetailVO() interface{}

func (ConcurrencyVO) GetListVO added in v1.7.0

func (c ConcurrencyVO) GetListVO() interface{}

type SentinelDTO

type SentinelDTO struct {
	AppName           string `gorm:"column:app_name" json:"AppName" form:"AppName" comment:"AppName"`
	DefaultAppType    int    `gorm:"column:app_type" json:"DefaultAppType" form:"DefaultAppType" comment:"DefaultAppType"`
	MetricHttpAddr    string `gorm:"column:metric_http_addr" json:"MetricHttpAddr" form:"MetricHttpAddr" comment:"MetricHttpAddr"`
	MetricHttpPath    string `gorm:"column:metric_http_path" json:"MetricHttpPath" form:"MetricHttpPath" comment:"MetricHttpPath"`
	CollectIntervalMs int    `gorm:"column:collect_interval_ms" json:"CollectIntervalMs" form:"CollectIntervalMs" comment:"CollectIntervalMs"`
}

type SentinelVO

type SentinelVO struct {
	Id                int64                      `gorm:"primaryKey;autoIncrement:false" json:"Id,string"`
	AppName           string                     `gorm:"column:app_name" json:"AppName" form:"AppName" comment:"AppName"`
	DefaultAppType    int                        `gorm:"column:app_type" json:"DefaultAppType" form:"DefaultAppType" comment:"DefaultAppType"`
	MetricHttpAddr    string                     `gorm:"column:metric_http_addr" json:"MetricHttpAddr" form:"MetricHttpAddr" comment:"MetricHttpAddr"`
	MetricHttpPath    string                     `gorm:"column:metric_http_path" json:"MetricHttpPath" form:"MetricHttpPath" comment:"MetricHttpPath"`
	CollectIntervalMs int                        `gorm:"column:collect_interval_ms" json:"CollectIntervalMs" form:"CollectIntervalMs" comment:"CollectIntervalMs"`
	Rules             []model.SentinelRuleEntity `gorm:"foreignKey:sentinel_id;association_foreignkey:Id;constraint:OnCreate:CASCADE,OnUpdate:CASCADE,OnDelete:CASCADE;"`
}

func (SentinelVO) GetDetailVO

func (c SentinelVO) GetDetailVO() interface{}

func (SentinelVO) GetListVO

func (c SentinelVO) GetListVO() interface{}

Jump to

Keyboard shortcuts

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