Server is the gRPC server for the Sentry service.
| 74 | |
| 75 | // Server is the gRPC server for the Sentry service. |
| 76 | type Server struct { |
| 77 | port int |
| 78 | listenAddress string |
| 79 | sec security.Provider |
| 80 | vals map[sentryv1pb.SignCertificateRequest_TokenValidator]validator.Validator |
| 81 | defaultValidator sentryv1pb.SignCertificateRequest_TokenValidator |
| 82 | ca ca.Signer |
| 83 | htarget healthz.Target |
| 84 | jwtEnabled bool |
| 85 | jwtTTL time.Duration |
| 86 | tld string |
| 87 | } |
| 88 | |
| 89 | func New(opts Options) *Server { |
| 90 | return &Server{ |
nothing calls this directly
no outgoing calls
no test coverage detected