Files
dissoupovandGitHub 27e411997c Added integration tests (#16)
* Refactor Backend service

* Added integration tests
2026-10-23 18:02:39 -05:00

16 lines
638 B
Go

// Package shared contains the helpers that several services use.
//
// BackendLocator returns the backend service (privpb.Backend) that the CA
// service forwards every call to and the AIA its OCSP requests: the one of
// the same process when porto discovery has a privpb.BackendServer, else a
// client of the backend listener created on the first call with the named
// service client.
//
// backend := shared.NewBackendLocator(server.Discovery, factory, client.ClientNameCA, config.BackendServerName)
// srv, err := backend.Backend()
// if err != nil {
// return err
// }
// res, err := srv.SignCertificate(ctx, req)
package shared