Search and commands

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

Type to search packages.

grpc_reflection_v1alpha

v1.14.0
github.com/bglmmz/grpc/reflection/grpc_reflection_v1alpha

Documentation

pkg.go.dev ↗

Table of contents

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

122 matches

Top ↑

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,proto3" json:"error_code,omitempty"`
	ErrorMessage         string   `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

ErrorResponse.XXX_DiscardUnknown

func (m *ErrorResponse) XXX_DiscardUnknown()

ErrorResponse.XXX_Marshal

func (m *ErrorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

ErrorResponse.XXX_Merge

func (dst *ErrorResponse) XXX_Merge(src proto.Message)

ErrorResponse.XXX_Size

func (m *ErrorResponse) XXX_Size() int

ErrorResponse.XXX_Unmarshal

func (m *ErrorResponse) XXX_Unmarshal(b []byte) error

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,proto3" json:"base_type_name,omitempty"`
	ExtensionNumber      []int32  `protobuf:"varint,2,rep,packed,name=extension_number,json=extensionNumber,proto3" json:"extension_number,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

ExtensionNumberResponse.XXX_DiscardUnknown

func (m *ExtensionNumberResponse) XXX_DiscardUnknown()

ExtensionNumberResponse.XXX_Marshal

func (m *ExtensionNumberResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

ExtensionNumberResponse.XXX_Merge

func (dst *ExtensionNumberResponse) XXX_Merge(src proto.Message)

ExtensionNumberResponse.XXX_Size

func (m *ExtensionNumberResponse) XXX_Size() int

ExtensionNumberResponse.XXX_Unmarshal

func (m *ExtensionNumberResponse) XXX_Unmarshal(b []byte) error

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,proto3" json:"containing_type,omitempty"`
	ExtensionNumber      int32    `protobuf:"varint,2,opt,name=extension_number,json=extensionNumber,proto3" json:"extension_number,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

ExtensionRequest.XXX_DiscardUnknown

func (m *ExtensionRequest) XXX_DiscardUnknown()

ExtensionRequest.XXX_Marshal

func (m *ExtensionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

ExtensionRequest.XXX_Merge

func (dst *ExtensionRequest) XXX_Merge(src proto.Message)

ExtensionRequest.XXX_Size

func (m *ExtensionRequest) XXX_Size() int

ExtensionRequest.XXX_Unmarshal

func (m *ExtensionRequest) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

FileDescriptorResponse.XXX_DiscardUnknown

func (m *FileDescriptorResponse) XXX_DiscardUnknown()

FileDescriptorResponse.XXX_Marshal

func (m *FileDescriptorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

FileDescriptorResponse.XXX_Merge

func (dst *FileDescriptorResponse) XXX_Merge(src proto.Message)

FileDescriptorResponse.XXX_Size

func (m *FileDescriptorResponse) XXX_Size() int

FileDescriptorResponse.XXX_Unmarshal

func (m *FileDescriptorResponse) XXX_Unmarshal(b []byte) error

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,proto3" json:"service,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

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

ListServiceResponse.XXX_DiscardUnknown

func (m *ListServiceResponse) XXX_DiscardUnknown()

ListServiceResponse.XXX_Marshal

func (m *ListServiceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

ListServiceResponse.XXX_Merge

func (dst *ListServiceResponse) XXX_Merge(src proto.Message)

ListServiceResponse.XXX_Size

func (m *ListServiceResponse) XXX_Size() int

ListServiceResponse.XXX_Unmarshal

func (m *ListServiceResponse) XXX_Unmarshal(b []byte) error

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)
}

ServerReflectionClient is the client API for ServerReflection service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

NewServerReflectionClient

func NewServerReflectionClient(cc *grpc.ClientConn) ServerReflectionClient

ServerReflectionRequest

type ServerReflectionRequest struct {
	Host string `protobuf:"bytes,1,opt,name=host,proto3" 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"`
	XXX_NoUnkeyedLiteral struct{}                                 `json:"-"`
	XXX_unrecognized     []byte                                   `json:"-"`
	XXX_sizecache        int32                                    `json:"-"`
}

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_DiscardUnknown

func (m *ServerReflectionRequest) XXX_DiscardUnknown()

ServerReflectionRequest.XXX_Marshal

func (m *ServerReflectionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

ServerReflectionRequest.XXX_Merge

func (dst *ServerReflectionRequest) XXX_Merge(src proto.Message)

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.XXX_Size

func (m *ServerReflectionRequest) XXX_Size() int

ServerReflectionRequest.XXX_Unmarshal

func (m *ServerReflectionRequest) XXX_Unmarshal(b []byte) error

ServerReflectionRequest_AllExtensionNumbersOfType

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

ServerReflectionRequest_FileByFilename

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

ServerReflectionRequest_FileContainingExtension

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

ServerReflectionRequest_FileContainingSymbol

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

ServerReflectionRequest_ListServices

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

ServerReflectionResponse

type ServerReflectionResponse struct {
	ValidHost       string                   `protobuf:"bytes,1,opt,name=valid_host,json=validHost,proto3" json:"valid_host,omitempty"`
	OriginalRequest *ServerReflectionRequest `protobuf:"bytes,2,opt,name=original_request,json=originalRequest,proto3" json:"original_request,omitempty"`
	// The server sets 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"`
	XXX_NoUnkeyedLiteral struct{}                                   `json:"-"`
	XXX_unrecognized     []byte                                     `json:"-"`
	XXX_sizecache        int32                                      `json:"-"`
}

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_DiscardUnknown

func (m *ServerReflectionResponse) XXX_DiscardUnknown()

ServerReflectionResponse.XXX_Marshal

func (m *ServerReflectionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

ServerReflectionResponse.XXX_Merge

func (dst *ServerReflectionResponse) XXX_Merge(src proto.Message)

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.XXX_Size

func (m *ServerReflectionResponse) XXX_Size() int

ServerReflectionResponse.XXX_Unmarshal

func (m *ServerReflectionResponse) XXX_Unmarshal(b []byte) error

ServerReflectionResponse_AllExtensionNumbersResponse

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

ServerReflectionResponse_ErrorResponse

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

ServerReflectionResponse_FileDescriptorResponse

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

ServerReflectionResponse_ListServicesResponse

type ServerReflectionResponse_ListServicesResponse struct {
	ListServicesResponse *ListServiceResponse `protobuf:"bytes,6,opt,name=list_services_response,json=listServicesResponse,proto3,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
}

ServerReflectionServer is the server API for ServerReflection service.

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,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

ServiceResponse.XXX_DiscardUnknown

func (m *ServiceResponse) XXX_DiscardUnknown()

ServiceResponse.XXX_Marshal

func (m *ServiceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

ServiceResponse.XXX_Merge

func (dst *ServiceResponse) XXX_Merge(src proto.Message)

ServiceResponse.XXX_Size

func (m *ServiceResponse) XXX_Size() int

ServiceResponse.XXX_Unmarshal

func (m *ServiceResponse) XXX_Unmarshal(b []byte) error

Dependency graph