Versions in this module Expand all Collapse all v0 v0.0.1 Apr 19, 2021 Changes in this version + 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 struct + GetCRTEndpoint endpoint.Endpoint + GetCSRStatusEndpoint endpoint.Endpoint + GetCSRsEndpoint endpoint.Endpoint + HealthEndpoint endpoint.Endpoint + func MakeServerEndpoints(s Service, otTracer stdopentracing.Tracer) Endpoints + type Middleware func(Service) Service + func LoggingMiddleware(logger log.Logger) Middleware + func NewInstrumentingMiddleware(counter metrics.Counter, latency metrics.Histogram) Middleware + type Service interface + GetCRT func(ctx context.Context, id int) ([]byte, error) + GetCSRStatus func(ctx context.Context, id int) (csrmodel.CSR, error) + GetCSRs func(ctx context.Context) csrmodel.CSRs + Health func(ctx context.Context) bool + func NewEnrrolerService() Service + type ServiceMiddleware func(Service) Service + func ProxyingMiddleware(proxyURL string, proxyCA string, consulProtocol string, consulHost string, ...) ServiceMiddleware