aboutsummaryrefslogtreecommitdiff
path: root/cvss/cvss.go
blob: 2bae0d7907ce8b2afb8ba7c7b68ffe8b05c03ea0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// CVSS vector parser.
package cvss

// Metric key.
type Key interface {
  // Get full name.
  Name() string

  // Get category.
  Category() Category

  // Return string representation.
  String() string
}

// CVSS metric.
type Metric interface {
  // Get metric key.
  Key() Key

  // Return string representation of metric.
  String() string
}