class

Detector::Specification::Grpc

Inherits Detector < Reference < Object

Constants

SERVICE_BLOCK = /\bservice\s+\w+\s*\{/

A gRPC service is defined by a service Name { ... } block. Matching that structural marker — rather than the bare substrings "service"/"rpc", which also occur in ordinary field names like service_url or rpc_timeout — keeps message-only and config .proto files from being mislabeled as gRPC.

Class methods

tech_name

The tech name without needing an instance, so the registry can be read off the classes themselves rather than from a parallel list.

Source

Instance methods

applicable?(filename : String) : Bool

Records every matching .proto path in CodeLocator for the analyzer pass. Must keep running after the first match so all service files get registered.

Source
detect(filename : String, file_contents : String) : Bool
Source
idempotent?

Records every matching .proto path in CodeLocator for the analyzer pass. Must keep running after the first match so all service files get registered.

Source
set_name

Records every matching .proto path in CodeLocator for the analyzer pass. Must keep running after the first match so all service files get registered.

Source