Skip to content

Commit

Permalink
feat: added versioner impl
Browse files Browse the repository at this point in the history
Signed-off-by: Sahil Silare <sahilsilare@gmail.com>
  • Loading branch information
sahil9001 committed Nov 9, 2024
1 parent 29f2ea4 commit ca674ad
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pkg/detectors/brandfetch/v1/brandfetch.go
Original file line number Diff line number Diff line change
@@ -14,8 +14,11 @@ import (

type Scanner struct{}

func (s Scanner) Version() int { return 1 }

// Ensure the Scanner satisfies the interface at compile time.
var _ detectors.Detector = (*Scanner)(nil)
var _ detectors.Versioner = (*Scanner)(nil)
var (
client = common.SaneHttpClient()

4 changes: 3 additions & 1 deletion pkg/detectors/brandfetch/v2/brandfetch.go
Original file line number Diff line number Diff line change
@@ -14,9 +14,11 @@ import (

type Scanner struct{}

func (s Scanner) Version() int { return 2 }

// Ensure the Scanner satisfies the interface at compile time.
var _ detectors.Detector = (*Scanner)(nil)

var _ detectors.Versioner = (*Scanner)(nil)
var (
client = common.SaneHttpClient()

0 comments on commit ca674ad

Please sign in to comment.