Search and commands

↑ ↓ to select · Enter to open · Esc to close

Type to search packages.

grpc_reflection_v1alpha

v1.10.0
github.com/teo/grpc-go/reflection/grpc_reflection_v1alpha

Documentation

pkg.go.dev ↗

Table of contents

↓ to select · Enter to jump· Shift+Enter for source

82 matches

Top ↑

Package grpc_reflection_v1alpha is a generated protocol buffer package.

It is generated from these files:

grpc_reflection_v1alpha/reflection.proto

It has these top-level messages:

ServerReflectionRequest
ExtensionRequest
ServerReflectionResponse
FileDescriptorResponse
ExtensionNumberResponse
ListServiceResponse
ServiceResponse
ErrorResponse

Functions

RegisterServerReflectionServer

func RegisterServerReflectionServer(s *grpc.Server, srv ServerReflectionServer)

Types

ErrorResponse

type ErrorResponse struct {
	// This field uses the error codes defined in grpc::StatusCode.
	ErrorCode    int32  `protobuf:"varint,1,opt,name=error_code,json=errorCode" json:"error_code,omitempty"`
	ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage" json:"error_message,omitempty"`
}

The error code and error message sent by the server when an error occurs.

ErrorResponse.Descriptor

func (*ErrorResponse) Descriptor() ([]byte, []int)

ErrorResponse.GetErrorCode

func (m *ErrorResponse) GetErrorCode() int32

ErrorResponse.GetErrorMessage

func (m *ErrorResponse) GetErrorMessage() string

ErrorResponse.ProtoMessage

func (*ErrorResponse) ProtoMessage()

ErrorResponse.Reset

func (m *ErrorResponse) Reset()

ErrorResponse.String

func (m *ErrorResponse) String() string

ExtensionNumberResponse

type ExtensionNumberResponse struct {
	// Full name of the base type, including the package name. The format
	// is <package>.<type>
	BaseTypeName    string  `protobuf:"bytes,1,opt,name=base_type_name,json=baseTypeName" json:"base_type_name,omitempty"`
	ExtensionNumber []int32 `protobuf:"varint,2,rep,packed,name=extension_number,json=extensionNumber" json:"extension_number,omitempty"`
}

A list of extension numbers sent by the server answering all_extension_numbers_of_type request.

ExtensionNumberResponse.Descriptor

func (*ExtensionNumberResponse) Descriptor() ([]byte, []int)

ExtensionNumberResponse.GetBaseTypeName

func (m *ExtensionNumberResponse) GetBaseTypeName() string

ExtensionNumberResponse.GetExtensionNumber

func (m *ExtensionNumberResponse) GetExtensionNumber() []int32

ExtensionNumberResponse.ProtoMessage

func (*ExtensionNumberResponse) ProtoMessage()

ExtensionNumberResponse.Reset

func (m *ExtensionNumberResponse) Reset()

ExtensionNumberResponse.String

func (m *ExtensionNumberResponse) String() string

ExtensionRequest

type ExtensionRequest struct {
	// Fully-qualified type name. The format should be <package>.<type>
	ContainingType  string `protobuf:"bytes,1,opt,name=containing_type,json=containingType" json:"containing_type,omitempty"`
	ExtensionNumber int32  `protobuf:"varint,2,opt,name=extension_number,json=extensionNumber" json:"extension_number,omitempty"`
}

The type name and extension number sent by the client when requesting file_containing_extension.

ExtensionRequest.Descriptor

func (*ExtensionRequest) Descriptor() ([]byte, []int)

ExtensionRequest.GetContainingType

func (m *ExtensionRequest) GetContainingType() string

ExtensionRequest.GetExtensionNumber

func (m *ExtensionRequest) GetExtensionNumber() int32

ExtensionRequest.ProtoMessage

func (*ExtensionRequest) ProtoMessage()

ExtensionRequest.Reset

func (m *ExtensionRequest) Reset()

ExtensionRequest.String

func (m *ExtensionRequest) String() string

FileDescriptorResponse

type FileDescriptorResponse struct {
	// Serialized FileDescriptorProto messages. We avoid taking a dependency on
	// descriptor.proto, which uses proto2 only features, by making them opaque
	// bytes instead.
	FileDescriptorProto [][]byte `protobuf:"bytes,1,rep,name=file_descriptor_proto,json=fileDescriptorProto,proto3" json:"file_descriptor_proto,omitempty"`
}

Serialized FileDescriptorProto messages sent by the server answering a file_by_filename, file_containing_symbol, or file_containing_extension request.

FileDescriptorResponse.Descriptor

func (*FileDescriptorResponse) Descriptor() ([]byte, []int)

FileDescriptorResponse.GetFileDescriptorProto

func (m *FileDescriptorResponse) GetFileDescriptorProto() [][]byte

FileDescriptorResponse.ProtoMessage

func (*FileDescriptorResponse) ProtoMessage()

FileDescriptorResponse.Reset

func (m *FileDescriptorResponse) Reset()

FileDescriptorResponse.String

func (m *FileDescriptorResponse) String() string

ListServiceResponse

type ListServiceResponse struct {
	// The information of each service may be expanded in the future, so we use
	// ServiceResponse message to encapsulate it.
	Service []*ServiceResponse `protobuf:"bytes,1,rep,name=service" json:"service,omitempty"`
}

A list of ServiceResponse sent by the server answering list_services request.

ListServiceResponse.Descriptor

func (*ListServiceResponse) Descriptor() ([]byte, []int)

ListServiceResponse.GetService

func (m *ListServiceResponse) GetService() []*ServiceResponse

ListServiceResponse.ProtoMessage

func (*ListServiceResponse) ProtoMessage()

ListServiceResponse.Reset

func (m *ListServiceResponse) Reset()

ListServiceResponse.String

func (m *ListServiceResponse) String() string

ServerReflectionClient

type ServerReflectionClient interface {
	// The reflection service is structured as a bidirectional stream, ensuring
	// all related requests go to a single server.
	ServerReflectionInfo(ctx context.Context, opts ...grpc.CallOption) (ServerReflection_ServerReflectionInfoClient, error)
}

NewServerReflectionClient

func NewServerReflectionClient(cc *grpc.ClientConn) ServerReflectionClient

ServerReflectionRequest

type ServerReflectionRequest struct {
	Host string `protobuf:"bytes,1,opt,name=host" json:"host,omitempty"`
	// To use reflection service, the client should set one of the following
	// fields in message_request. The server distinguishes requests by their
	// defined field and then handles them using corresponding methods.
	//
	// Types that are valid to be assigned to MessageRequest:
	//	*ServerReflectionRequest_FileByFilename
	//	*ServerReflectionRequest_FileContainingSymbol
	//	*ServerReflectionRequest_FileContainingExtension
	//	*ServerReflectionRequest_AllExtensionNumbersOfType
	//	*ServerReflectionRequest_ListServices
	MessageRequest isServerReflectionRequest_MessageRequest `protobuf_oneof:"message_request"`
}

The message sent by the client when calling ServerReflectionInfo method.

ServerReflectionRequest.Descriptor

func (*ServerReflectionRequest) Descriptor() ([]byte, []int)

ServerReflectionRequest.GetAllExtensionNumbersOfType

func (m *ServerReflectionRequest) GetAllExtensionNumbersOfType() string

ServerReflectionRequest.GetFileByFilename

func (m *ServerReflectionRequest) GetFileByFilename() string

ServerReflectionRequest.GetFileContainingExtension

func (m *ServerReflectionRequest) GetFileContainingExtension() *ExtensionRequest

ServerReflectionRequest.GetFileContainingSymbol

func (m *ServerReflectionRequest) GetFileContainingSymbol() string

ServerReflectionRequest.GetHost

func (m *ServerReflectionRequest) GetHost() string

ServerReflectionRequest.GetListServices

func (m *ServerReflectionRequest) GetListServices() string

ServerReflectionRequest.GetMessageRequest

func (m *ServerReflectionRequest) GetMessageRequest() isServerReflectionRequest_MessageRequest

ServerReflectionRequest.ProtoMessage

func (*ServerReflectionRequest) ProtoMessage()

ServerReflectionRequest.Reset

func (m *ServerReflectionRequest) Reset()

ServerReflectionRequest.String

func (m *ServerReflectionRequest) String() string

ServerReflectionRequest.XXX_OneofFuncs

func (*ServerReflectionRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

ServerReflectionRequest_AllExtensionNumbersOfType

type ServerReflectionRequest_AllExtensionNumbersOfType struct {
	AllExtensionNumbersOfType string `protobuf:"bytes,6,opt,name=all_extension_numbers_of_type,json=allExtensionNumbersOfType,oneof"`
}

ServerReflectionRequest_FileByFilename

type ServerReflectionRequest_FileByFilename struct {
	FileByFilename string `protobuf:"bytes,3,opt,name=file_by_filename,json=fileByFilename,oneof"`
}

ServerReflectionRequest_FileContainingExtension

type ServerReflectionRequest_FileContainingExtension struct {
	FileContainingExtension *ExtensionRequest `protobuf:"bytes,5,opt,name=file_containing_extension,json=fileContainingExtension,oneof"`
}

ServerReflectionRequest_FileContainingSymbol

type ServerReflectionRequest_FileContainingSymbol struct {
	FileContainingSymbol string `protobuf:"bytes,4,opt,name=file_containing_symbol,json=fileContainingSymbol,oneof"`
}

ServerReflectionRequest_ListServices

type ServerReflectionRequest_ListServices struct {
	ListServices string `protobuf:"bytes,7,opt,name=list_services,json=listServices,oneof"`
}

ServerReflectionResponse

type ServerReflectionResponse struct {
	ValidHost       string                   `protobuf:"bytes,1,opt,name=valid_host,json=validHost" json:"valid_host,omitempty"`
	OriginalRequest *ServerReflectionRequest `protobuf:"bytes,2,opt,name=original_request,json=originalRequest" json:"original_request,omitempty"`
	// The server set one of the following fields according to the message_request
	// in the request.
	//
	// Types that are valid to be assigned to MessageResponse:
	//	*ServerReflectionResponse_FileDescriptorResponse
	//	*ServerReflectionResponse_AllExtensionNumbersResponse
	//	*ServerReflectionResponse_ListServicesResponse
	//	*ServerReflectionResponse_ErrorResponse
	MessageResponse isServerReflectionResponse_MessageResponse `protobuf_oneof:"message_response"`
}

The message sent by the server to answer ServerReflectionInfo method.

ServerReflectionResponse.Descriptor

func (*ServerReflectionResponse) Descriptor() ([]byte, []int)

ServerReflectionResponse.GetAllExtensionNumbersResponse

func (m *ServerReflectionResponse) GetAllExtensionNumbersResponse() *ExtensionNumberResponse

ServerReflectionResponse.GetErrorResponse

func (m *ServerReflectionResponse) GetErrorResponse() *ErrorResponse

ServerReflectionResponse.GetFileDescriptorResponse

func (m *ServerReflectionResponse) GetFileDescriptorResponse() *FileDescriptorResponse

ServerReflectionResponse.GetListServicesResponse

func (m *ServerReflectionResponse) GetListServicesResponse() *ListServiceResponse

ServerReflectionResponse.GetMessageResponse

func (m *ServerReflectionResponse) GetMessageResponse() isServerReflectionResponse_MessageResponse

ServerReflectionResponse.GetOriginalRequest

func (m *ServerReflectionResponse) GetOriginalRequest() *ServerReflectionRequest

ServerReflectionResponse.GetValidHost

func (m *ServerReflectionResponse) GetValidHost() string

ServerReflectionResponse.ProtoMessage

func (*ServerReflectionResponse) ProtoMessage()

ServerReflectionResponse.Reset

func (m *ServerReflectionResponse) Reset()

ServerReflectionResponse.String

func (m *ServerReflectionResponse) String() string

ServerReflectionResponse.XXX_OneofFuncs

func (*ServerReflectionResponse) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

ServerReflectionResponse_AllExtensionNumbersResponse

type ServerReflectionResponse_AllExtensionNumbersResponse struct {
	AllExtensionNumbersResponse *ExtensionNumberResponse `protobuf:"bytes,5,opt,name=all_extension_numbers_response,json=allExtensionNumbersResponse,oneof"`
}

ServerReflectionResponse_ErrorResponse

type ServerReflectionResponse_ErrorResponse struct {
	ErrorResponse *ErrorResponse `protobuf:"bytes,7,opt,name=error_response,json=errorResponse,oneof"`
}

ServerReflectionResponse_FileDescriptorResponse

type ServerReflectionResponse_FileDescriptorResponse struct {
	FileDescriptorResponse *FileDescriptorResponse `protobuf:"bytes,4,opt,name=file_descriptor_response,json=fileDescriptorResponse,oneof"`
}

ServerReflectionResponse_ListServicesResponse

type ServerReflectionResponse_ListServicesResponse struct {
	ListServicesResponse *ListServiceResponse `protobuf:"bytes,6,opt,name=list_services_response,json=listServicesResponse,oneof"`
}

ServerReflectionServer

type ServerReflectionServer interface {
	// The reflection service is structured as a bidirectional stream, ensuring
	// all related requests go to a single server.
	ServerReflectionInfo(ServerReflection_ServerReflectionInfoServer) error
}

ServerReflection_ServerReflectionInfoClient

type ServerReflection_ServerReflectionInfoClient interface {
	Send(*ServerReflectionRequest) error
	Recv() (*ServerReflectionResponse, error)
	grpc.ClientStream
}

ServerReflection_ServerReflectionInfoServer

type ServerReflection_ServerReflectionInfoServer interface {
	Send(*ServerReflectionResponse) error
	Recv() (*ServerReflectionRequest, error)
	grpc.ServerStream
}

ServiceResponse

type ServiceResponse struct {
	// Full name of a registered service, including its package name. The format
	// is <package>.<service>
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

The information of a single service used by ListServiceResponse to answer list_services request.

ServiceResponse.Descriptor

func (*ServiceResponse) Descriptor() ([]byte, []int)

ServiceResponse.GetName

func (m *ServiceResponse) GetName() string

ServiceResponse.ProtoMessage

func (*ServiceResponse) ProtoMessage()

ServiceResponse.Reset

func (m *ServiceResponse) Reset()

ServiceResponse.String

func (m *ServiceResponse) String() string

Dependency graph