grpc

package
v0.17.3 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 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"`
}

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"`
}

type Service

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

Jump to

Keyboard shortcuts

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