mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-22 23:26:39 -08:00
* fix(github): return db size * fix(github_mock): add size * feat(indicator): add progress bar * refactor(config): remove global Quiet * fix(db): take progress bar as an argument * fix(progress): inject progress bar
26 lines
481 B
Go
26 lines
481 B
Go
// +build wireinject
|
|
|
|
package server
|
|
|
|
import (
|
|
"github.com/google/wire"
|
|
|
|
"github.com/aquasecurity/trivy/pkg/rpc/server/library"
|
|
"github.com/aquasecurity/trivy/pkg/rpc/server/ospkg"
|
|
)
|
|
|
|
func initializeOspkgServer() *ospkg.Server {
|
|
wire.Build(ospkg.SuperSet)
|
|
return &ospkg.Server{}
|
|
}
|
|
|
|
func initializeLibServer() *library.Server {
|
|
wire.Build(library.SuperSet)
|
|
return &library.Server{}
|
|
}
|
|
|
|
func initializeDBWorker(quiet bool) dbWorker {
|
|
wire.Build(SuperSet)
|
|
return dbWorker{}
|
|
}
|