Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
22a7f0099
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2022
22a7f0099
Commits
67fee58e
Commit
67fee58e
authored
5 years ago
by
pantianying
Browse files
Options
Downloads
Patches
Plain Diff
merge code
parent
02716fdd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
config/reference_config.go
+4
-1
4 additions, 1 deletion
config/reference_config.go
with
4 additions
and
1 deletion
config/reference_config.go
+
4
−
1
View file @
67fee58e
...
@@ -60,7 +60,7 @@ type ReferenceConfig struct {
...
@@ -60,7 +60,7 @@ type ReferenceConfig struct {
invoker
protocol
.
Invoker
invoker
protocol
.
Invoker
urls
[]
*
common
.
URL
urls
[]
*
common
.
URL
Generic
bool
`yaml:"generic" json:"generic,omitempty" property:"generic"`
Generic
bool
`yaml:"generic" json:"generic,omitempty" property:"generic"`
Sticky
bool
`yaml:"sticky" json:"sticky,omitempty" property:"sticky"`
Sticky
bool
`yaml:"sticky" json:"sticky,omitempty" property:"sticky"`
RequestTimeout
string
`yaml:"timeout" json:"timeout,omitempty" property:"timeout"`
RequestTimeout
string
`yaml:"timeout" json:"timeout,omitempty" property:"timeout"`
}
}
...
@@ -170,6 +170,9 @@ func (refconfig *ReferenceConfig) getUrlMap() url.Values {
...
@@ -170,6 +170,9 @@ func (refconfig *ReferenceConfig) getUrlMap() url.Values {
urlMap
.
Set
(
constant
.
VERSION_KEY
,
refconfig
.
Version
)
urlMap
.
Set
(
constant
.
VERSION_KEY
,
refconfig
.
Version
)
urlMap
.
Set
(
constant
.
GENERIC_KEY
,
strconv
.
FormatBool
(
refconfig
.
Generic
))
urlMap
.
Set
(
constant
.
GENERIC_KEY
,
strconv
.
FormatBool
(
refconfig
.
Generic
))
urlMap
.
Set
(
constant
.
ROLE_KEY
,
strconv
.
Itoa
(
common
.
CONSUMER
))
urlMap
.
Set
(
constant
.
ROLE_KEY
,
strconv
.
Itoa
(
common
.
CONSUMER
))
if
len
(
refconfig
.
RequestTimeout
)
!=
0
{
urlMap
.
Set
(
constant
.
TIMEOUT_KEY
,
refconfig
.
RequestTimeout
)
}
//getty invoke async or sync
//getty invoke async or sync
urlMap
.
Set
(
constant
.
ASYNC_KEY
,
strconv
.
FormatBool
(
refconfig
.
async
))
urlMap
.
Set
(
constant
.
ASYNC_KEY
,
strconv
.
FormatBool
(
refconfig
.
async
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment