This repository was archived by the owner on Apr 1, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -19,12 +19,6 @@ package api
19
19
20
20
type ApiType int32
21
21
22
- const (
23
- REST_VALUE = "REST"
24
- GRPC_VALUE = "GRPC"
25
- DUBBO_VALUE = "DUBBO"
26
- )
27
-
28
22
// Status is the components status
29
23
type Status int32
30
24
Original file line number Diff line number Diff line change @@ -76,6 +76,12 @@ type PluginsGroup struct {
76
76
Plugins []Plugin `json:"plugins" yaml:"plugins"`
77
77
}
78
78
79
+ //PluginsConfig defines the pre & post plugins
80
+ type PluginsConfig struct {
81
+ PrePlugins []* PluginsInUse `json:"pre" yaml:"pre"`
82
+ PostPlugins []* PluginsInUse `json:"post" yaml:"post"`
83
+ }
84
+
79
85
type PluginsInUse struct {
80
86
GroupNames []string `json:"groupNames" yaml:"groupNames"`
81
87
PluginNames []string `json:"pluginNames" yaml:"pluginNames"`
@@ -88,7 +94,7 @@ type Resource struct {
88
94
Timeout time.Duration `json:"timeout" yaml:"timeout"`
89
95
Description string `json:"description" yaml:"description"`
90
96
Filters []string `json:"filters" yaml:"filters"`
91
- Plugins PluginsInUse `json:"plugins" yaml:"plugins"`
97
+ Plugins PluginsConfig `json:"plugins" yaml:"plugins"`
92
98
Methods []Method `json:"methods" yaml:"methods"`
93
99
Resources []Resource `json:"resources,omitempty" yaml:"resources,omitempty"`
94
100
Headers map [string ]string `json:"headers,omitempty" yaml:"headers,omitempty"`
You can’t perform that action at this time.
0 commit comments