-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add parameter to allow stale service health queries (#2)
- if parameter is not passed in, a nil QueryOptions pointer is still used (previous behavior) - if paramter is marked true, then only the AllowStale struct field is set the behavior of setQueryOptions on zero value struct members - act on non-empty string values - all boleans QueryOptions are checked for truthiness, default behavior is nothing on false - single number type struct member only acts on > 0 values the net effect is that only AllowStale is added by this change (intended at least)
- Loading branch information
1 parent
866c30b
commit e49b078
Showing
3 changed files
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters