Differentiate guest and host plugins

This commit is contained in:
sophia 2021-08-19 17:29:17 -05:00 committed by Paul Hinze
parent 6b007f27bb
commit 545ddbdc74
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ type AlwaysTrueHost struct {
}
// DetectFunc implements component.Host
func (h *AlwaysTrueHost) DetectFunc() interface{} {
func (h *AlwaysTrueHost) HostDetectFunc() interface{} {
return h.Detect
}

View File

@ -17,7 +17,7 @@ type AlwaysTrueGuest struct {
}
// DetectFunc implements component.Guest
func (h *AlwaysTrueGuest) DetectFunc() interface{} {
func (h *AlwaysTrueGuest) GuestDetectFunc() interface{} {
return h.Detect
}