Server: Remove unused services (#62015)
remove unused entries Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com> Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
This commit is contained in:
@@ -32,12 +32,20 @@ type Bundle struct {
|
||||
type CollectorFunc func(context.Context) (*SupportItem, error)
|
||||
|
||||
type Collector struct {
|
||||
UID string `json:"uid"`
|
||||
DisplayName string `json:"displayName"`
|
||||
Description string `json:"description"`
|
||||
IncludedByDefault bool `json:"includedByDefault"`
|
||||
Default bool `json:"default"`
|
||||
Fn CollectorFunc `json:"-"`
|
||||
// UID is a unique identifier for the collector.
|
||||
UID string `json:"uid"`
|
||||
// DisplayName is the name of the collector. User facing.
|
||||
DisplayName string `json:"displayName"`
|
||||
// Description is a description of the collector. User facing.
|
||||
Description string `json:"description"`
|
||||
// IncludedByDefault determines if the collector is included by default.
|
||||
// User cannot override this.
|
||||
IncludedByDefault bool `json:"includedByDefault"`
|
||||
// Default determines if the collector is included by default.
|
||||
// User can override this.
|
||||
Default bool `json:"default"`
|
||||
// Fn is the function that collects the support item.
|
||||
Fn CollectorFunc `json:"-"`
|
||||
}
|
||||
|
||||
type Service interface {
|
||||
|
||||
Reference in New Issue
Block a user