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 ¶
func NewGRPCServer ¶
NewGRPCServer new a gRPC server.
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 CASBackendUseCase *biz.CASBackendUseCase CASClientUseCase *biz.CASClientUseCase IntegrationUseCase *biz.IntegrationUseCase ReferrerUseCase *biz.ReferrerUseCase APITokenUseCase *biz.APITokenUseCase OrganizationUseCase *biz.OrganizationUseCase WorkflowUseCase *biz.WorkflowUseCase // Services WorkflowSvc *service.WorkflowService AuthSvc *service.AuthService RobotAccountSvc *service.RobotAccountService WorkflowRunSvc *service.WorkflowRunService AttestationSvc *service.AttestationService WorkflowContractSvc *service.WorkflowContractService ContextSvc *service.ContextService CASCredsSvc *service.CASCredentialsService OrgMetricsSvc *service.OrgMetricsService IntegrationsSvc *service.IntegrationsService OrganizationSvc *service.OrganizationService CASBackendSvc *service.CASBackendService CASRedirectSvc *service.CASRedirectService OrgInvitationSvc *service.OrgInvitationService ReferrerSvc *service.ReferrerService APITokenSvc *service.APITokenService AttestationStateSvc *service.AttestationStateService UserSvc *service.UserService SigningSvc *service.SigningService PrometheusSvc *service.PrometheusService // Utils Logger log.Logger ServerConfig *conf.Server AuthConfig *conf.Auth Credentials credentials.ReaderWriter Enforcer *authz.Enforcer Validator *protovalidate.Validator }
Click to show internal directories.
Click to hide internal directories.