Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
interface-go-dms3-core
Commits
42d3b2ed
Commit
42d3b2ed
authored
Dec 10, 2018
by
Łukasz Magiera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coreapi: drop nameopt.Local in favour of api.Offline
License: MIT Signed-off-by:
Łukasz Magiera
<
magik6k@gmail.com
>
parent
7b478b88
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
11 deletions
+0
-11
options/name.go
options/name.go
+0
-11
No files found.
options/name.go
View file @
42d3b2ed
...
...
@@ -20,7 +20,6 @@ type NamePublishSettings struct {
}
type
NameResolveSettings
struct
{
Local
bool
Cache
bool
ResolveOpts
[]
ropts
.
ResolveOpt
...
...
@@ -49,7 +48,6 @@ func NamePublishOptions(opts ...NamePublishOption) (*NamePublishSettings, error)
func
NameResolveOptions
(
opts
...
NameResolveOption
)
(
*
NameResolveSettings
,
error
)
{
options
:=
&
NameResolveSettings
{
Local
:
false
,
Cache
:
true
,
}
...
...
@@ -106,15 +104,6 @@ func (nameOpts) TTL(ttl time.Duration) NamePublishOption {
}
}
// Local is an option for Name.Resolve which specifies if the lookup should be
// offline. Default value is false
func
(
nameOpts
)
Local
(
local
bool
)
NameResolveOption
{
return
func
(
settings
*
NameResolveSettings
)
error
{
settings
.
Local
=
local
return
nil
}
}
// Cache is an option for Name.Resolve which specifies if cache should be used.
// Default value is true
func
(
nameOpts
)
Cache
(
cache
bool
)
NameResolveOption
{
...
...
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