model

package
v0.0.0-...-4092e8f Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ModelStringMatchToStringMatch

func ModelStringMatchToStringMatch(stringMatch *StringMatch) *mesh_proto.StringMatch

Types

type AdminMetadata

type AdminMetadata struct {
	Registry   string `json:"registry"`
	Metadata   string `json:"metadata"`
	Config     string `json:"config"`
	Prometheus string `json:"prometheus"`
	Grafana    string `json:"grafana"`
	Tracing    string `json:"tracing"`
}

func NewAdminMetadata

func NewAdminMetadata() *AdminMetadata

type AffinityAware

type AffinityAware struct {
	Enabled bool   `json:"enabled"`
	Key     string `json:"key"`
}

type AppDashboardReq

type AppDashboardReq struct {
	Application string `form:"application"`
}

func (*AppDashboardReq) GetKeyVariable

func (req *AppDashboardReq) GetKeyVariable() string

type Application

type Application struct{}

Application dubbo 应用

type ApplicationDetail

type ApplicationDetail struct {
	AppTypes         Set
	DeployClusters   Set
	DubboPorts       Set
	DubboVersions    Set
	Images           Set
	RegisterClusters Set
	RegisterModes    Set
	RPCProtocols     Set
	SerialProtocols  Set
	Workloads        Set
}

func NewApplicationDetail

func NewApplicationDetail() *ApplicationDetail

func (*ApplicationDetail) GetRegistry

func (a *ApplicationDetail) GetRegistry(rt core_runtime.Runtime)

func (*ApplicationDetail) MergeDatapalne

func (a *ApplicationDetail) MergeDatapalne(dataplane *mesh.DataplaneResource)

func (*ApplicationDetail) MergeMetaData

func (a *ApplicationDetail) MergeMetaData(metadata *mesh.MetaDataResource)

type ApplicationDetailReq

type ApplicationDetailReq struct {
	AppName string `form:"appName"`
}

Todo Application Detail

type ApplicationDetailResp

type ApplicationDetailResp struct {
	AppName          string   `json:"appName"`
	AppTypes         []string `json:"appTypes"`
	DeployClusters   []string `json:"deployClusters"`
	DubboPorts       []string `json:"dubboPorts"`
	DubboVersions    []string `json:"dubboVersions"`
	Images           []string `json:"images"`
	RegisterClusters []string `json:"registerClusters"`
	RegisterModes    []string `json:"registerModes"`
	RPCProtocols     []string `json:"rpcProtocols"`
	SerialProtocols  []string `json:"serialProtocols"`
	Workloads        []string `json:"workloads"`
}

func (*ApplicationDetailResp) FromApplicationDetail

func (r *ApplicationDetailResp) FromApplicationDetail(ad *ApplicationDetail) *ApplicationDetailResp

type ApplicationSearch

type ApplicationSearch struct {
	AppName          string
	DeployClusters   Set
	InstanceCount    int64
	RegistryClusters Set
}

func NewApplicationSearch

func NewApplicationSearch(appName string) *ApplicationSearch

func (*ApplicationSearch) GetRegistry

func (a *ApplicationSearch) GetRegistry(rt core_runtime.Runtime)

func (*ApplicationSearch) MergeDataplane

func (a *ApplicationSearch) MergeDataplane(dataplane *mesh.DataplaneResource)

type ApplicationSearchReq

type ApplicationSearchReq struct {
	AppName  string `form:"appName" json:"appName"`
	Keywords string `form:"keywords" json:"keywords"`
	PageReq
}

func NewApplicationSearchReq

func NewApplicationSearchReq() *ApplicationSearchReq

type ApplicationSearchResp

type ApplicationSearchResp struct {
	AppName          string   `json:"appName"`
	DeployClusters   []string `json:"deployClusters"`
	InstanceCount    int64    `json:"instanceCount"`
	RegistryClusters []string `json:"registryClusters"`
}

func (*ApplicationSearchResp) FromApplicationSearch

func (a *ApplicationSearchResp) FromApplicationSearch(applicationSearch *ApplicationSearch) *ApplicationSearchResp

type ApplicationServiceForm

type ApplicationServiceForm struct {
	ServiceName   string
	VersionGroups Set
}

func NewApplicationServiceForm

func NewApplicationServiceForm(serviceName string) *ApplicationServiceForm

func (*ApplicationServiceForm) FromServiceInfo

func (a *ApplicationServiceForm) FromServiceInfo(serviceInfo *v1alpha1.ServiceInfo) error

type ApplicationServiceFormReq

type ApplicationServiceFormReq struct {
	AppName string `form:"appName"`
	Side    string `form:"side"`
	PageReq
}

func NewApplicationServiceFormReq

func NewApplicationServiceFormReq() *ApplicationServiceFormReq

type ApplicationServiceFormResp

type ApplicationServiceFormResp struct {
	ServiceName   string         `json:"serviceName"`
	VersionGroups []versionGroup `json:"versionGroups"`
}

func NewApplicationServiceFormResp

func NewApplicationServiceFormResp() *ApplicationServiceFormResp

func (*ApplicationServiceFormResp) FromApplicationServiceForm

func (a *ApplicationServiceFormResp) FromApplicationServiceForm(form *ApplicationServiceForm) error

type ApplicationServiceReq

type ApplicationServiceReq struct {
	AppName string `json:"appName"`
}

type ApplicationServiceResp

type ApplicationServiceResp struct {
	ConsumeNum int64 `json:"consumeNum"`
	ProvideNum int64 `json:"provideNum"`
}

type ApplicationTabInstanceInfoReq

type ApplicationTabInstanceInfoReq struct {
	AppName string `form:"appName"`
	PageReq
}

func NewApplicationTabInstanceInfoReq

func NewApplicationTabInstanceInfoReq() *ApplicationTabInstanceInfoReq

type ApplicationTabInstanceInfoResp

type ApplicationTabInstanceInfoResp struct {
	AppName         string            `json:"appName"`
	CreateTime      string            `json:"createTime"`
	DeployState     string            `json:"deployState"`
	DeployClusters  string            `json:"deployClusters"`
	IP              string            `json:"ip"`
	Labels          map[string]string `json:"labels"`
	Name            string            `json:"name"`
	RegisterCluster string            `json:"registerCluster"`
	RegisterState   string            `json:"registerState"`
	RegisterTime    string            `json:"registerTime"`
	WorkloadName    string            `json:"workloadName"`
}

func (*ApplicationTabInstanceInfoResp) FromDataplaneResource

func (*ApplicationTabInstanceInfoResp) GetRegistry

type ByAppName

type ByAppName []*ApplicationSearchResp

func (ByAppName) Len

func (a ByAppName) Len() int

func (ByAppName) Less

func (a ByAppName) Less(i, j int) bool

func (ByAppName) Swap

func (a ByAppName) Swap(i, j int)

type ByAppServiceFormName

type ByAppServiceFormName []*ApplicationServiceFormResp

func (ByAppServiceFormName) Len

func (a ByAppServiceFormName) Len() int

func (ByAppServiceFormName) Less

func (a ByAppServiceFormName) Less(i, j int) bool

func (ByAppServiceFormName) Swap

func (a ByAppServiceFormName) Swap(i, j int)

type ByApplicationInstanceName

type ByApplicationInstanceName []*ApplicationTabInstanceInfoResp

func (ByApplicationInstanceName) Len

func (ByApplicationInstanceName) Less

func (a ByApplicationInstanceName) Less(i, j int) bool

func (ByApplicationInstanceName) Swap

func (a ByApplicationInstanceName) Swap(i, j int)

type ByServiceInstanceName

type ByServiceInstanceName []*ServiceTabDistributionResp

func (ByServiceInstanceName) Len

func (a ByServiceInstanceName) Len() int

func (ByServiceInstanceName) Less

func (a ByServiceInstanceName) Less(i, j int) bool

func (ByServiceInstanceName) Swap

func (a ByServiceInstanceName) Swap(i, j int)

type ByServiceName

type ByServiceName []*ServiceSearchResp

func (ByServiceName) Len

func (a ByServiceName) Len() int

func (ByServiceName) Less

func (a ByServiceName) Less(i, j int) bool

func (ByServiceName) Swap

func (a ByServiceName) Swap(i, j int)

type CommonResp

type CommonResp struct {
	Code int    `json:"code"`
	Msg  string `json:"msg"`
	Data any    `json:"data"`
}

func NewErrorResp

func NewErrorResp(msg string) *CommonResp

func NewSuccessResp

func NewSuccessResp(data any) *CommonResp

func (*CommonResp) WithCode

func (r *CommonResp) WithCode(code int) *CommonResp

func (*CommonResp) WithData

func (r *CommonResp) WithData(data any) *CommonResp

func (*CommonResp) WithMsg

func (r *CommonResp) WithMsg(msg string) *CommonResp

type Condition

type Condition struct {
	From Condition_From `json:"from"`
	To   []Condition_To `json:"to"`
}

type ConditionRuleResp

type ConditionRuleResp struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data"`
}

func GenConditionRuleToResp

func GenConditionRuleToResp(code int, message string, data *mesh_proto.ConditionRoute) *ConditionRuleResp

type ConditionRuleSearchResp

type ConditionRuleSearchResp struct {
	Code    int64                          `json:"code"`
	Data    []ConditionRuleSearchResp_Data `json:"data"`
	Message string                         `json:"message"`
}

type ConditionRuleSearchResp_Data

type ConditionRuleSearchResp_Data struct {
	CreateTime string `json:"createTime"`
	Enabled    bool   `json:"enabled"`
	RuleName   string `json:"ruleName"`
	Scope      string `json:"scope"`
}

type ConditionRuleV3X1

type ConditionRuleV3X1 struct {
	Conditions    []Condition `json:"conditions"`
	ConfigVersion string      `json:"configVersion"`
	Enabled       bool        `json:"enabled"`
	Force         bool        `json:"force"`
	Key           string      `json:"key"`
	Runtime       bool        `json:"runtime"`
	Scope         string      `json:"scope"`
}

type Condition_From

type Condition_From struct {
	Match string `json:"match"`
}

type Condition_To

type Condition_To struct {
	Match  string `json:"match"`
	Weight int32  `json:"weight"`
}

type ConfigItem

type ConfigItem struct {
	Enabled    *bool             `json:"enabled,omitempty"`
	Match      *RespMatch        `json:"match,omitempty"`
	Parameters map[string]string `json:"parameters"`
	Side       string            `json:"side"`
}

type ConfiguratorResp

type ConfiguratorResp struct {
	Code    int              `json:"code"`
	Message string           `json:"message"`
	Data    RespConfigurator `json:"data"`
}

func GenDynamicConfigToResp

func GenDynamicConfigToResp(code int, message string, pb *mesh_proto.DynamicConfig) (res *ConfiguratorResp)

type ConfiguratorSearchResp

type ConfiguratorSearchResp struct {
	Code    int                           `json:"code"`
	Message string                        `json:"message"`
	Data    []ConfiguratorSearchResp_Data `json:"data"`
}

type ConfiguratorSearchResp_Data

type ConfiguratorSearchResp_Data struct {
	RuleName   string `json:"ruleName"`
	Scope      string `json:"scope"`
	CreateTime string `json:"createTime"`
	Enabled    bool   `json:"enabled"`
}

type DashboardReq

type DashboardReq interface {
	GetKeyVariable() string
}

type DashboardResp

type DashboardResp struct {
	BaseURL string `json:"baseURL"`
}

DashboardResp TODO add dynamic variables

type Destination

type Destination struct {
	Conditions []DestinationCondition `json:"conditions"`
	Weight     int32                  `json:"weight"`
}

type DestinationCondition

type DestinationCondition struct {
	Relation string `json:"relation"`
	Tag      string `json:"tag"`
	Value    string `json:"value"`
}

type FlowWeightSet

type FlowWeightSet struct {
	Weight int32      `json:"weight,omitempty"`
	Scope  ParamMatch `json:"scope,omitempty"`
}

type GraySet

type GraySet struct {
	EnvName string     `json:"name,omitempty"`
	Scope   ParamMatch `json:"scope,omitempty"`
}

type Instance

type Instance struct{}

Instance dubbo 实例

type InstanceDashboardReq

type InstanceDashboardReq struct {
	Instance string `form:"instance"`
}

func (*InstanceDashboardReq) GetKeyVariable

func (req *InstanceDashboardReq) GetKeyVariable() string

type InstanceDetail

type InstanceDetail struct {
	RpcPort          int
	Ip               string
	AppName          string
	WorkloadName     string
	Labels           map[string]string
	CreateTime       string
	ReadyTime        string
	RegisterTime     string
	RegisterState    string
	RegisterClusters Set
	DeployCluster    string
	DeployState      string
	Node             string
	Image            string
	Tags             map[string]string
	Probes           ProbeStruct
}

func NewInstanceDetail

func NewInstanceDetail() *InstanceDetail

func (*InstanceDetail) Merge

func (a *InstanceDetail) Merge(dataplane *mesh.DataplaneResource)

type InstanceDetailReq

type InstanceDetailReq struct {
	InstanceName string `form:"instanceName"`
}

type InstanceDetailResp

type InstanceDetailResp struct {
	RpcPort          int               `json:"rpcPort"`
	Ip               string            `json:"ip"`
	AppName          string            `json:"appName"`
	WorkloadName     string            `json:"workloadName"`
	Labels           map[string]string `json:"labels"`
	CreateTime       string            `json:"createTime"`
	ReadyTime        string            `json:"readyTime"`
	RegisterTime     string            `json:"registerTime"`
	RegisterClusters []string          `json:"registerClusters"`
	DeployCluster    string            `json:"deployCluster"`
	DeployState      string            `json:"deployState"`
	RegisterState    string            `json:"registerState"`
	Node             string            `json:"node"`
	Image            string            `json:"image"`
	Probes           ProbeStruct       `json:"probes"`
	Tags             map[string]string `json:"tags"`
}

func (*InstanceDetailResp) FromInstanceDetail

func (r *InstanceDetailResp) FromInstanceDetail(id *InstanceDetail) *InstanceDetailResp

type LivenessProbe

type LivenessProbe struct {
	Type string `json:"type"`
	Port int    `json:"port"`
	Open bool   `json:"open"`
}

type MethodDescribe

type MethodDescribe struct {
	InputType      string `json:"inputType"`
	InputDescribe  string `json:"inputDescribe"`
	OutputType     string `json:"outputType"`
	OutputDescribe string `json:"outputDescribe"`
}

type MethodDetail

type MethodDetail struct {
	InputT     []interface{} `json:"parameterTypes"`
	ReturnType string        `json:"returnType"`
}

type Metric

type Metric struct {
	Name   string            `json:"name"`
	Labels map[string]string `json:"labels"`
	Value  float64           `json:"value"`
}

Metric represents a single metric with its name, labels, and value.

type MetricsCategory

type MetricsCategory int
const (
	RT MetricsCategory = iota
	QPS
	REQUESTS
	APPLICATION
	CONFIGCENTER
	REGISTRY
	METADATA
	THREAD_POOL
)

type MetricsReq

type MetricsReq struct {
	InstanceName string `form:"instanceName"`
}

type MetricsResp

type MetricsResp struct {
	InstanceName string
	Metrics      []Metric
}

type OverviewResp

type OverviewResp struct {
	AppCount     int            `json:"appCount"`
	ServiceCount int            `json:"serviceCount"`
	InsCount     int            `json:"insCount"`
	Protocols    map[string]int `json:"protocols"`
	Releases     map[string]int `json:"releases"`
	Discoveries  map[string]int `json:"discoveries"`
}

func NewOverviewResp

func NewOverviewResp() *OverviewResp

type PageData

type PageData struct {
	Total    int `json:"total"`
	CurPage  int `json:"curPage"`
	PageSize int `json:"pageSize"`
	Data     any `json:"data"`
}

func NewPageData

func NewPageData() *PageData

func (*PageData) WithCurPage

func (pd *PageData) WithCurPage(curPage int) *PageData

func (*PageData) WithData

func (pd *PageData) WithData(data any) *PageData

func (*PageData) WithPageSize

func (pd *PageData) WithPageSize(pageSize int) *PageData

func (*PageData) WithTotal

func (pd *PageData) WithTotal(total int) *PageData

type PageReq

type PageReq struct {
	PageOffset int `form:"pageOffset" json:"pageOffset"`
	PageSize   int `form:"pageSize" json:"pageSize"`
}

type ParamMatch

type ParamMatch struct {
	Key   *string      `json:"key,omitempty"`
	Value *StringMatch `json:"value,omitempty"`
}

type ProbeStruct

type ProbeStruct struct {
	StartupProbe   StartupProbe   `json:"startupProbe"`
	ReadinessProbe ReadinessProbe `json:"readinessProbe"`
	LivenessProbe  LivenessProbe  `json:"livenessProbe"`
}

type ReadinessProbe

type ReadinessProbe struct {
	Type string `json:"type"`
	Port int    `json:"port"`
	Open bool   `json:"open"`
}

type RespAddress

type RespAddress struct {
	Cird     *string `json:"cird,omitempty"`
	Exact    *string `json:"exact,omitempty"`
	Wildcard *string `json:"wildcard,omitempty"`
}

type RespAddressMatch

type RespAddressMatch struct {
	Cird     *string `json:"cird,omitempty"`
	Exact    *string `json:"exact,omitempty"`
	Wildcard *string `json:"wildcard,omitempty"`
}

type RespConditionRuleData

type RespConditionRuleData struct {
	Conditions    []string `json:"conditions"`
	ConfigVersion string   `json:"configVersion"`
	Enabled       bool     `json:"enabled"`
	Key           string   `json:"key"`
	Runtime       bool     `json:"runtime"`
	Scope         string   `json:"scope"`
}

type RespConfigurator

type RespConfigurator struct {
	Configs       []ConfigItem `json:"configs"`
	ConfigVersion string       `json:"configVersion"`
	Enabled       bool         `json:"enabled"`
	Key           string       `json:"key"`
	Scope         string       `json:"scope"`
}

type RespListStringMatch

type RespListStringMatch struct {
	Oneof []StringMatch `json:"oneof,omitempty"`
}

type RespMatch

type RespMatch struct {
	Address         *RespAddress         `json:"address,omitempty"`
	App             *RespListStringMatch `json:"app,omitempty"`
	Param           []ParamMatch         `json:"param,omitempty"`
	ProviderAddress *RespAddressMatch    `json:"providerAddress,omitempty"`
	Service         *RespListStringMatch `json:"service,omitempty"`
}

type RespTagData

type RespTagData struct {
	ConfigVersion string           `json:"configVersion"`
	Enabled       bool             `json:"enabled"`
	Key           string           `json:"key"`
	Runtime       bool             `json:"runtime"`
	Scope         string           `json:"scope"`
	Tags          []RespTagElement `json:"tags"`
}

type RespTagElement

type RespTagElement struct {
	Addresses []string     `json:"addresses,omitempty"`
	Match     []ParamMatch `json:"match,omitempty"`
	Name      string       `json:"name"`
}

type RouteCondition

type RouteCondition struct {
	Index    string `json:"index"`
	Relation string `json:"relation"`
	Value    string `json:"value"`
}

type SearchInstanceReq

type SearchInstanceReq struct {
	AppName  string `form:"appName"`
	Keywords string `form:"keywords"`
	PageReq
}

func NewSearchInstanceReq

func NewSearchInstanceReq() *SearchInstanceReq

type SearchInstanceResp

type SearchInstanceResp struct {
	Ip                  string            `json:"ip"`
	Name                string            `json:"name"`
	WorkloadName        string            `json:"workloadName"`
	AppName             string            `json:"appName"`
	DeployState         string            `json:"deployState"`
	DeployCluster       string            `json:"deployCluster"`
	RegisterState       string            `json:"registerState"`
	RegisterClustersSet *gxset.HashSet    `json:"-"`
	RegisterClusters    []string          `json:"registerClusters"`
	CreateTime          string            `json:"createTime"`
	RegisterTime        string            `json:"registerTime"` // TODO: not converted
	Labels              map[string]string `json:"labels"`
}

func NewSearchInstanceResp

func NewSearchInstanceResp() *SearchInstanceResp

func (*SearchInstanceResp) FromDataplaneResource

func (r *SearchInstanceResp) FromDataplaneResource(dr *mesh.DataplaneResource) *SearchInstanceResp

type SearchPaginationResult

type SearchPaginationResult struct {
	List     any               `json:"list"`
	PageInfo *model.Pagination `json:"pageInfo"`
}

func NewSearchPaginationResult

func NewSearchPaginationResult() *SearchPaginationResult

type SearchReq

type SearchReq struct {
	SearchType string `form:"searchType"`
	Keywords   string `form:"keywords"`
	PageReq
}

func NewSearchReq

func NewSearchReq() *SearchReq

type SearchRes

type SearchRes struct {
	Find       bool     `json:"find"`
	Candidates []string `json:"candidates"`
}

type Service

type Service struct{}

Service dubbo 服务

type ServiceArgument

type ServiceArgument struct {
	Conditions   []RouteCondition `json:"conditions"`
	Destinations []Destination    `json:"destinations"`
	Method       string           `json:"method"`
}

type ServiceArgumentRoute

type ServiceArgumentRoute struct {
	Routes []ServiceArgument `json:"routes"`
}

func ConditionV3x1ToServiceArgumentRoute

func ConditionV3x1ToServiceArgumentRoute(mesh []*mesh_proto.ConditionRule) *ServiceArgumentRoute

func (*ServiceArgumentRoute) ToConditionV3x1Condition

func (s *ServiceArgumentRoute) ToConditionV3x1Condition() []*mesh_proto.ConditionRule

type ServiceDashboardReq

type ServiceDashboardReq struct {
	Service string `form:"service"`
}

func (*ServiceDashboardReq) GetKeyVariable

func (req *ServiceDashboardReq) GetKeyVariable() string

type ServiceSearch

type ServiceSearch struct {
	ServiceName   string
	VersionGroups Set
}

func NewServiceSearch

func NewServiceSearch(serviceName string) *ServiceSearch

func (*ServiceSearch) FromServiceInfo

func (s *ServiceSearch) FromServiceInfo(info *v1alpha1.ServiceInfo)

type ServiceSearchReq

type ServiceSearchReq struct {
	ServiceName string `form:"serviceName" json:"serviceName"`
	Keywords    string `form:"keywords" json:"keywords"`
	PageReq
}

func NewServiceSearchReq

func NewServiceSearchReq() *ServiceSearchReq

type ServiceSearchResp

type ServiceSearchResp struct {
	ServiceName   string         `json:"serviceName"`
	VersionGroups []VersionGroup `json:"versionGroups"`
}

func NewServiceSearchResp

func NewServiceSearchResp() *ServiceSearchResp

func (*ServiceSearchResp) FromServiceSearch

func (s *ServiceSearchResp) FromServiceSearch(search *ServiceSearch)

type ServiceTabDistribution

type ServiceTabDistribution struct {
	AppName      string
	InstanceName string
	Endpoint     string
	TimeOut      string
	Retries      string
}

func NewServiceDistribution

func NewServiceDistribution() *ServiceTabDistribution

type ServiceTabDistributionReq

type ServiceTabDistributionReq struct {
	ServiceName string `json:"serviceName"  form:"serviceName" binding:"required"`
	Version     string `json:"version"  form:"version"`
	Group       string `json:"group"  form:"group"`
	Side        string `json:"side" form:"side"  binding:"required"`
	PageReq
}

type ServiceTabDistributionResp

type ServiceTabDistributionResp struct {
	AppName      string            `json:"appName"`
	InstanceName string            `json:"instanceName"`
	Endpoint     string            `json:"endpoint"`
	TimeOut      string            `json:"timeOut"`
	Retries      string            `json:"retries"`
	Params       map[string]string `json:"params"`
}

func NewServiceDistributionResp

func NewServiceDistributionResp() *ServiceTabDistributionResp

func (*ServiceTabDistributionResp) FromServiceDataplaneResource

func (*ServiceTabDistributionResp) FromServiceDistribution

func (r *ServiceTabDistributionResp) FromServiceDistribution(distribution *ServiceTabDistribution) *ServiceTabDistributionResp

type Set

type Set map[string]struct{}

func NewSet

func NewSet(values ...string) Set

func (Set) Add

func (s Set) Add(values ...string)

func (Set) Contains

func (s Set) Contains(value string) bool

func (Set) Values

func (s Set) Values() []string

type StartupProbe

type StartupProbe struct {
	Type string `json:"type"`
	Port int    `json:"port"`
	Open bool   `json:"open"`
}

type State

type State struct {
	Label string `json:"label"`
	Level string `json:"level"`
	Tip   string `json:"tip"`
	Value string `json:"value"`
}

type StringMatch

type StringMatch struct {
	Empty    *string `json:"empty,omitempty"`
	Exact    *string `json:"exact,omitempty"`
	Noempty  *string `json:"noempty,omitempty"`
	Prefix   *string `json:"prefix,omitempty"`
	Regex    *string `json:"regex,omitempty"`
	Wildcard *string `json:"wildcard,omitempty"`
}

func StringMatchToModelStringMatch

func StringMatchToModelStringMatch(stringMatch *mesh_proto.StringMatch) *StringMatch

type TagRuleResp

type TagRuleResp struct {
	Code    int          `json:"code"`
	Message string       `json:"message"`
	Data    *RespTagData `json:"data"`
}

func GenTagRouteResp

func GenTagRouteResp(code int, message string, pb *mesh_proto.TagRoute) *TagRuleResp

type TagRuleSearchResp

type TagRuleSearchResp struct {
	Code    int64                     `json:"code"`
	Data    []TagRuleSearchResp_Datum `json:"data"`
	Message string                    `json:"message"`
}

type TagRuleSearchResp_Datum

type TagRuleSearchResp_Datum struct {
	CreateTime *string `json:"createTime,omitempty"`
	Enabled    *bool   `json:"enabled,omitempty"`
	RuleName   *string `json:"ruleName,omitempty"`
}

type VersionGroup

type VersionGroup struct {
	Version string `json:"version"`
	Group   string `json:"group"`
}

type Workload

type Workload struct{}

Workload dubbo 工作负载

Jump to

Keyboard shortcuts

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