Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet( NewGRPCServer, NewHTTPServer, NewHTTPMetricsServer, wire.Struct(new(Opts), "*"), )
ProviderSet is server providers.
View Source
var Version = "dev"
Functions ¶
Types ¶
type HTTPMetricsServer ¶
HTTPMetricsServer is a HTTP server that exposes the metrics endpoint
func NewHTTPMetricsServer ¶
func NewHTTPMetricsServer(opts *Opts) (*HTTPMetricsServer, error)
NewHTTPMetricsServer exposes the metrics endpoint in another port
type Opts ¶
type Opts struct { // UseCases UserUseCase *biz.UserUseCase RobotAccountUseCase *biz.RobotAccountUseCase OCIRepositoryUseCase *biz.OCIRepositoryUseCase CASClientUseCase *biz.CASClientUseCase // Services WorkflowSvc *service.WorkflowService AuthSvc *service.AuthService RobotAccountSvc *service.RobotAccountService WorkflowRunSvc *service.WorkflowRunService AttesstationSvc *service.AttestationService WorkflowContractSvc *service.WorkflowContractService ContextSvc *service.ContextService CASCredsSvc *service.CASCredentialsService OrgMetricsSvc *service.OrgMetricsService OCIRepositorySvc *service.OCIRepositoryService IntegrationsSvc *service.IntegrationsService OrganizationSvc *service.OrganizationService // Utils Logger log.Logger ServerConfig *conf.Server AuthConfig *conf.Auth }
Click to show internal directories.
Click to hide internal directories.