Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
Coredns
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Railgun
Coredns
Commits
bf479f9a
Commit
bf479f9a
authored
May 04, 2018
by
John Belamaric
Committed by
Miek Gieben
May 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gofmt some stuff (#1769)
parent
be8fcc48
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
plugin/forward/policy.go
plugin/forward/policy.go
+1
-2
plugin/pkg/healthcheck/policy.go
plugin/pkg/healthcheck/policy.go
+2
-2
plugin/tls/tls_test.go
plugin/tls/tls_test.go
+2
-2
No files found.
plugin/forward/policy.go
View file @
bf479f9a
...
...
@@ -55,11 +55,10 @@ func (r *roundRobin) List(p []*Proxy) []*Proxy {
}
// sequential is a policy that selects hosts based on sequential ordering.
type
sequential
struct
{}
type
sequential
struct
{}
func
(
r
*
sequential
)
String
()
string
{
return
"sequential"
}
func
(
r
*
sequential
)
List
(
p
[]
*
Proxy
)
[]
*
Proxy
{
return
p
}
plugin/pkg/healthcheck/policy.go
View file @
bf479f9a
...
...
@@ -29,8 +29,8 @@ func init() {
RegisterPolicy
(
"least_conn"
,
func
()
Policy
{
return
&
LeastConn
{}
})
RegisterPolicy
(
"round_robin"
,
func
()
Policy
{
return
&
RoundRobin
{}
})
RegisterPolicy
(
"first"
,
func
()
Policy
{
return
&
First
{}
})
// 'sequential' is an alias to 'first' to maintain consistency with the forward plugin
// should probably remove 'first' in a future release
// 'sequential' is an alias to 'first' to maintain consistency with the forward plugin
// should probably remove 'first' in a future release
RegisterPolicy
(
"sequential"
,
func
()
Policy
{
return
&
First
{}
})
}
...
...
plugin/tls/tls_test.go
View file @
bf479f9a
...
...
@@ -14,8 +14,8 @@ func TestTLS(t *testing.T) {
expectedRoot
string
// expected root, set to the controller. Empty for negative cases.
expectedErrContent
string
// substring from the expected error. Empty for positive cases.
}{
// positive
// negative
// positive
// negative
}
for
i
,
test
:=
range
tests
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment