Documentation ¶
Index ¶
- func MakeGetCRTEndpoint(s Service) endpoint.Endpoint
- func MakeGetCSRStatusEndpoint(s Service) endpoint.Endpoint
- func MakeGetCSRsEndpoint(s Service) endpoint.Endpoint
- func MakeHTTPHandler(s Service, logger log.Logger, auth auth.Auth, otTracer stdopentracing.Tracer) http.Handler
- func MakeHealthEndpoint(s Service) endpoint.Endpoint
- type Endpoints
- type Middleware
- type Service
- type ServiceMiddleware
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeGetCRTEndpoint ¶
func MakeGetCSRsEndpoint ¶
func MakeHTTPHandler ¶
func MakeHealthEndpoint ¶
Types ¶
type Endpoints ¶
type Endpoints struct { HealthEndpoint endpoint.Endpoint GetCSRsEndpoint endpoint.Endpoint GetCSRStatusEndpoint endpoint.Endpoint GetCRTEndpoint endpoint.Endpoint }
func MakeServerEndpoints ¶
func MakeServerEndpoints(s Service, otTracer stdopentracing.Tracer) Endpoints
type Middleware ¶
func LoggingMiddleware ¶
func LoggingMiddleware(logger log.Logger) Middleware
func NewInstrumentingMiddleware ¶
func NewInstrumentingMiddleware(counter metrics.Counter, latency metrics.Histogram) Middleware
type Service ¶
type Service interface { Health(ctx context.Context) bool GetCSRs(ctx context.Context) csrmodel.CSRs GetCSRStatus(ctx context.Context, id int) (csrmodel.CSR, error) GetCRT(ctx context.Context, id int) ([]byte, error) }
func NewEnrrolerService ¶
func NewEnrrolerService() Service
type ServiceMiddleware ¶
func ProxyingMiddleware ¶
Click to show internal directories.
Click to hide internal directories.