schema

package
v1.8.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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