const unixProtocol …
type gRPCService …
func NewGRPCService(ctx context.Context, endpoint, providerName string, callTimeout time.Duration) (kmsservice.Service, error) { … }
func (g *gRPCService) Decrypt(ctx context.Context, uid string, req *kmsservice.DecryptRequest) ([]byte, error) { … }
func (g *gRPCService) Encrypt(ctx context.Context, uid string, plaintext []byte) (*kmsservice.EncryptResponse, error) { … }
func (g *gRPCService) Status(ctx context.Context) (*kmsservice.StatusResponse, error) { … }
func recordMetricsInterceptor(providerName string) grpc.UnaryClientInterceptor { … }