proto

package
v0.10.11 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package proto implements idl.Spec for Protocol Buffers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FullyQualifiedMessageName added in v0.9.0

func FullyQualifiedMessageName(pkg, msg string) string

FullyQualifiedMessageName returns the fully-qualified message name.

func FullyQualifiedServiceName added in v0.9.0

func FullyQualifiedServiceName(pkg, svc string) string

FullyQualifiedServiceName returns the fully-qualified service name.

func LoadByReflection

func LoadByReflection(client grpcreflection.Client) (idl.Spec, error)

LoadByReflection receives a gRPC reflection client, then tries to instantiate a new idl.Spec by using gRPC reflection.

func LoadFiles

func LoadFiles(importPaths []string, fnames []string) (idl.Spec, error)

LoadFiles receives proto file names and import paths like protoc's options. Then, LoadFiles parses these files and instantiates a new idl.Spec.

func ParseFullyQualifiedServiceName added in v0.9.0

func ParseFullyQualifiedServiceName(fqsn string) (string, string)

ParseFullyQualifiedServiceName returns the package and service name from a fully-qualified service name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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