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
45ac2dd0
Commit
45ac2dd0
authored
Apr 04, 2016
by
Miek Gieben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small documenation updates
parent
84dfdab5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
5 deletions
+7
-5
middleware/canonical.go
middleware/canonical.go
+1
-1
middleware/chaos/chaos.go
middleware/chaos/chaos.go
+3
-1
middleware/replacer.go
middleware/replacer.go
+1
-1
middleware/state.go
middleware/state.go
+2
-2
No files found.
middleware/canonical.go
View file @
45ac2dd0
...
...
@@ -11,7 +11,7 @@ import (
// The function orders names in DNSSEC canonical order: RFC 4034s section-6.1
//
// See http://bert-hubert.blogspot.co.uk/2015/10/how-to-do-fast-canonical-ordering-of.html
// for a blog article on this implementation
:
// for a blog article on this implementation
.
func
Less
(
a
,
b
string
)
int
{
i
:=
1
aj
:=
len
(
a
)
...
...
middleware/chaos/chaos.go
View file @
45ac2dd0
...
...
@@ -9,10 +9,12 @@ import (
"golang.org/x/net/context"
)
// Chaos allows CoreDNS to reply to CH TXT queries and return author or
// version information.
type
Chaos
struct
{
Next
middleware
.
Handler
Version
string
Authors
map
[
string
]
bool
// get randomization for free \o/
Authors
map
[
string
]
bool
}
func
(
c
Chaos
)
ServeDNS
(
ctx
context
.
Context
,
w
dns
.
ResponseWriter
,
r
*
dns
.
Msg
)
(
int
,
error
)
{
...
...
middleware/replacer.go
View file @
45ac2dd0
...
...
@@ -10,7 +10,7 @@ import (
// Replacer is a type which can replace placeholder
// substrings in a string with actual values from a
//
http.Request
and responseRecorder. Always use
//
dns.Msg
and responseRecorder. Always use
// NewReplacer to get one of these.
type
Replacer
interface
{
Replace
(
string
)
string
...
...
middleware/state.go
View file @
45ac2dd0
...
...
@@ -144,7 +144,7 @@ func (s *State) SizeAndDo() *dns.OPT {
return
o
}
// Result is the result of
Fit
.
// Result is the result of
Scrub
.
type
Result
int
const
(
...
...
@@ -180,7 +180,7 @@ func (s *State) Scrub(reply *dns.Msg) (*dns.Msg, Result) {
// Type returns the type of the question as a string.
func
(
s
*
State
)
Type
()
string
{
return
dns
.
Type
(
s
.
Req
.
Question
[
0
]
.
Qtype
)
.
String
()
}
// QType returns the type of the question as a uint16.
// QType returns the type of the question as a
n
uint16.
func
(
s
*
State
)
QType
()
uint16
{
return
s
.
Req
.
Question
[
0
]
.
Qtype
}
// Name returns the name of the question in the request. Note
...
...
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