Fininshed with node discovery and service refactoring

This commit is contained in:
Gregory Kurtzer
2020-12-13 20:20:03 -08:00
parent f1706a4a0e
commit 5c23ef9f94
10 changed files with 85 additions and 19 deletions

View File

@@ -41,8 +41,10 @@ func (self *Entry) SetAlt(val string, from string) {
}
func (self *Entry) SetAltB(val bool, from string) {
self.altbool = val
self.from = from
if val == true {
self.altbool = val
self.from = from
}
return
}
@@ -106,6 +108,13 @@ func (self *Entry) Print() string {
return "--"
}
func (self *Entry) PrintB() bool {
if self.from == "" {
return self.bool
}
return self.altbool
}
func (self *Entry) Source() string {
if self.value != "" && self.altvalue != "" {
return "SUPERSEDED"