grpc

package
v0.19.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2026 License: Apache-2.0, Apache-2.0 Imports: 6 Imported by: 0

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

func FromEvents(evs []model.Event) string

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).

type Service

type Service struct {
	Package string   `json:"package"`
	Service string   `json:"service"`
	Methods []Method `json:"methods"`
}

Service is one observed gRPC service (identified by its protobuf package and service name) together with every Method observed for it.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL