Movatterモバイル変換


[0]ホーム

URL:


internal

package
v1.77.0Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License:Apache-2.0Imports:11Imported by:0

Details

Repository

github.com/grpc/grpc-go

Links

Documentation

Overview

Package internal contains code that is shared by both reflection package andthe test package. The packages are split in this way inorder to avoiddependency to deprecated package github.com/golang/protobuf.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcV1AlphaToV1Request

V1AlphaToV1Request converts a v1alpha ServerReflectionRequest to a v1.

funcV1AlphaToV1Response

V1AlphaToV1Response converts a v1alpha ServerReflectionResponse to a v1.

funcV1ToV1AlphaRequest

V1ToV1AlphaRequest converts a v1 ServerReflectionRequest to a v1alpha.

funcV1ToV1AlphaResponse

V1ToV1AlphaResponse converts a v1 ServerReflectionResponse to a v1alpha.

Types

typeExtensionResolver

type ExtensionResolver interface {protoregistry.ExtensionTypeResolverRangeExtensionsByMessage(messageprotoreflect.FullName, f func(protoreflect.ExtensionType)bool)}

ExtensionResolver is the interface used to query details about extensions.This interface is satisfied by protoregistry.GlobalTypes.

typeServerReflectionServer

ServerReflectionServer is the server API for ServerReflection service.

func (*ServerReflectionServer)AllExtensionNumbersForTypeName

func (s *ServerReflectionServer) AllExtensionNumbersForTypeName(namestring) ([]int32,error)

AllExtensionNumbersForTypeName returns all extension numbers for the given type.

func (*ServerReflectionServer)FileDescEncodingContainingExtension

func (s *ServerReflectionServer) FileDescEncodingContainingExtension(typeNamestring, extNumint32, sentFileDescriptors map[string]bool) ([][]byte,error)

FileDescEncodingContainingExtension finds the file descriptor containinggiven extension, finds all of its previously unsent transitive dependencies,does marshalling on them, and returns the marshalled result.

func (*ServerReflectionServer)FileDescEncodingContainingSymbol

func (s *ServerReflectionServer) FileDescEncodingContainingSymbol(namestring, sentFileDescriptors map[string]bool) ([][]byte,error)

FileDescEncodingContainingSymbol finds the file descriptor containing thegiven symbol, finds all of its previously unsent transitive dependencies,does marshalling on them, and returns the marshalled result. The given symbolcan be a type, a service or a method.

func (*ServerReflectionServer)FileDescWithDependencies

func (s *ServerReflectionServer) FileDescWithDependencies(fdprotoreflect.FileDescriptor, sentFileDescriptors map[string]bool) ([][]byte,error)

FileDescWithDependencies returns a slice of serialized fileDescriptors inwire format ([]byte). The fileDescriptors will include fd and all thetransitive dependencies of fd with names not in sentFileDescriptors.

func (*ServerReflectionServer)ListServices

ListServices returns the names of services this server exposes.

func (*ServerReflectionServer)ServerReflectionInfo

ServerReflectionInfo is the reflection service handler.

typeServiceInfoProvider

type ServiceInfoProvider interface {GetServiceInfo() map[string]grpc.ServiceInfo}

ServiceInfoProvider is an interface used to retrieve metadata about theservices to expose.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp