Documentation ¶
Overview ¶
Package proto implements idl.Spec for Protocol Buffers.
Index ¶
- func FullyQualifiedMessageName(pkg, msg string) string
- func FullyQualifiedServiceName(pkg, svc string) string
- func LoadByReflection(client grpcreflection.Client) (idl.Spec, error)
- func LoadFiles(importPaths []string, fnames []string) (idl.Spec, error)
- func ParseFullyQualifiedServiceName(fqsn string) (string, string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FullyQualifiedMessageName ¶ added in v0.9.0
FullyQualifiedMessageName returns the fully-qualified message name.
func FullyQualifiedServiceName ¶ added in v0.9.0
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 ¶
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
ParseFullyQualifiedServiceName returns the package and service name from a fully-qualified service name.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.