Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildMinimalCatalog ¶
func BuildMinimalCatalog() string
BuildMinimalCatalog builds the minimal catalog via data structures, then formats strictly.
func FromEvents ¶
FromEvents builds a gRPC catalog from recorded events deterministically.
Types ¶
type Catalog ¶
type Catalog struct {
Services []Service `json:"services"`
}
Catalog is the top-level gRPC export document: the full set of observed Services, in the deterministic order produced by BuildMinimalCatalog and FromEvents and marshaled to JSON by formatStrict.
type Method ¶
type Method struct {
Name string `json:"name"`
Decoded bool `json:"decoded"`
ClientStream bool `json:"clientStream,omitzero"`
ServerStream bool `json:"serverStream,omitzero"`
ReqSchema *model.Schema `json:"requestSchema,omitempty"`
ResSchema *model.Schema `json:"responseSchema,omitempty"`
}
Method is one observed gRPC method within a Service: its name, whether it was successfully decoded via descriptors (Decoded), whether either leg of the call streams (ClientStream/ServerStream), and the structural request/response schemas derived from the method's message descriptors when decoding succeeded (ReqSchema/ResSchema are nil otherwise).