grpc: google.golang.org/grpc/reflection/grpc_reflection_v1alpha Index | Files

package grpc_reflection_v1alpha

import "google.golang.org/grpc/reflection/grpc_reflection_v1alpha"

Index

Package Files

reflection.pb.go

func RegisterServerReflectionServer Uses

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

type ErrorResponse Uses

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.

func (*ErrorResponse) Descriptor Uses

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

func (*ErrorResponse) GetErrorCode Uses

func (m *ErrorResponse) GetErrorCode() int32

func (*ErrorResponse) GetErrorMessage Uses

func (m *ErrorResponse) GetErrorMessage() string

func (*ErrorResponse) ProtoMessage Uses

func (*ErrorResponse) ProtoMessage()

func (*ErrorResponse) Reset Uses

func (m *ErrorResponse) Reset()

func (*ErrorResponse) String Uses

func (m *ErrorResponse) String() string

func (*ErrorResponse) XXX_DiscardUnknown Uses

func (m *ErrorResponse) XXX_DiscardUnknown()

func (*ErrorResponse) XXX_Marshal Uses

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

func (*ErrorResponse) XXX_Merge Uses

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

func (*ErrorResponse) XXX_Size Uses

func (m *ErrorResponse) XXX_Size() int

func (*ErrorResponse) XXX_Unmarshal Uses

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

type ExtensionNumberResponse Uses

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.

func (*ExtensionNumberResponse) Descriptor Uses

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

func (*ExtensionNumberResponse) GetBaseTypeName Uses

func (m *ExtensionNumberResponse) GetBaseTypeName() string

func (*ExtensionNumberResponse) GetExtensionNumber Uses

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

func (*ExtensionNumberResponse) ProtoMessage Uses

func (*ExtensionNumberResponse) ProtoMessage()

func (*ExtensionNumberResponse) Reset Uses

func (m *ExtensionNumberResponse) Reset()

func (*ExtensionNumberResponse) String Uses

func (m *ExtensionNumberResponse) String() string

func (*ExtensionNumberResponse) XXX_DiscardUnknown Uses

func (m *ExtensionNumberResponse) XXX_DiscardUnknown()

func (*ExtensionNumberResponse) XXX_Marshal Uses

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

func (*ExtensionNumberResponse) XXX_Merge Uses

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

func (*ExtensionNumberResponse) XXX_Size Uses

func (m *ExtensionNumberResponse) XXX_Size() int

func (*ExtensionNumberResponse) XXX_Unmarshal Uses

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

type ExtensionRequest Uses

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.

func (*ExtensionRequest) Descriptor Uses

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

func (*ExtensionRequest) GetContainingType Uses

func (m *ExtensionRequest) GetContainingType() string

func (*ExtensionRequest) GetExtensionNumber Uses

func (m *ExtensionRequest) GetExtensionNumber() int32

func (*ExtensionRequest) ProtoMessage Uses

func (*ExtensionRequest) ProtoMessage()

func (*ExtensionRequest) Reset Uses

func (m *ExtensionRequest) Reset()

func (*ExtensionRequest) String Uses

func (m *ExtensionRequest) String() string

func (*ExtensionRequest) XXX_DiscardUnknown Uses

func (m *ExtensionRequest) XXX_DiscardUnknown()

func (*ExtensionRequest) XXX_Marshal Uses

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

func (*ExtensionRequest) XXX_Merge Uses

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

func (*ExtensionRequest) XXX_Size Uses

func (m *ExtensionRequest) XXX_Size() int

func (*ExtensionRequest) XXX_Unmarshal Uses

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

type FileDescriptorResponse Uses

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.

func (*FileDescriptorResponse) Descriptor Uses

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

func (*FileDescriptorResponse) GetFileDescriptorProto Uses

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

func (*FileDescriptorResponse) ProtoMessage Uses

func (*FileDescriptorResponse) ProtoMessage()

func (*FileDescriptorResponse) Reset Uses

func (m *FileDescriptorResponse) Reset()

func (*FileDescriptorResponse) String Uses

func (m *FileDescriptorResponse) String() string

func (*FileDescriptorResponse) XXX_DiscardUnknown Uses

func (m *FileDescriptorResponse) XXX_DiscardUnknown()

func (*FileDescriptorResponse) XXX_Marshal Uses

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

func (*FileDescriptorResponse) XXX_Merge Uses

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

func (*FileDescriptorResponse) XXX_Size Uses

func (m *FileDescriptorResponse) XXX_Size() int

func (*FileDescriptorResponse) XXX_Unmarshal Uses

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

type ListServiceResponse Uses

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.

func (*ListServiceResponse) Descriptor Uses

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

func (*ListServiceResponse) GetService Uses

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

func (*ListServiceResponse) ProtoMessage Uses

func (*ListServiceResponse) ProtoMessage()

func (*ListServiceResponse) Reset Uses

func (m *ListServiceResponse) Reset()

func (*ListServiceResponse) String Uses

func (m *ListServiceResponse) String() string

func (*ListServiceResponse) XXX_DiscardUnknown Uses

func (m *ListServiceResponse) XXX_DiscardUnknown()

func (*ListServiceResponse) XXX_Marshal Uses

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

func (*ListServiceResponse) XXX_Merge Uses

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

func (*ListServiceResponse) XXX_Size Uses

func (m *ListServiceResponse) XXX_Size() int

func (*ListServiceResponse) XXX_Unmarshal Uses

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

type ServerReflectionClient Uses

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.

func NewServerReflectionClient Uses

func NewServerReflectionClient(cc *grpc.ClientConn) ServerReflectionClient

type ServerReflectionRequest Uses

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.

func (*ServerReflectionRequest) Descriptor Uses

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

func (*ServerReflectionRequest) GetAllExtensionNumbersOfType Uses

func (m *ServerReflectionRequest) GetAllExtensionNumbersOfType() string

func (*ServerReflectionRequest) GetFileByFilename Uses

func (m *ServerReflectionRequest) GetFileByFilename() string

func (*ServerReflectionRequest) GetFileContainingExtension Uses

func (m *ServerReflectionRequest) GetFileContainingExtension() *ExtensionRequest

func (*ServerReflectionRequest) GetFileContainingSymbol Uses

func (m *ServerReflectionRequest) GetFileContainingSymbol() string

func (*ServerReflectionRequest) GetHost Uses

func (m *ServerReflectionRequest) GetHost() string

func (*ServerReflectionRequest) GetListServices Uses

func (m *ServerReflectionRequest) GetListServices() string

func (*ServerReflectionRequest) GetMessageRequest Uses

func (m *ServerReflectionRequest) GetMessageRequest() isServerReflectionRequest_MessageRequest

func (*ServerReflectionRequest) ProtoMessage Uses

func (*ServerReflectionRequest) ProtoMessage()

func (*ServerReflectionRequest) Reset Uses

func (m *ServerReflectionRequest) Reset()

func (*ServerReflectionRequest) String Uses

func (m *ServerReflectionRequest) String() string

func (*ServerReflectionRequest) XXX_DiscardUnknown Uses

func (m *ServerReflectionRequest) XXX_DiscardUnknown()

func (*ServerReflectionRequest) XXX_Marshal Uses

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

func (*ServerReflectionRequest) XXX_Merge Uses

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

func (*ServerReflectionRequest) XXX_OneofFuncs Uses

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.

func (*ServerReflectionRequest) XXX_Size Uses

func (m *ServerReflectionRequest) XXX_Size() int

func (*ServerReflectionRequest) XXX_Unmarshal Uses

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

type ServerReflectionRequest_AllExtensionNumbersOfType Uses

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

type ServerReflectionRequest_FileByFilename Uses

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

type ServerReflectionRequest_FileContainingExtension Uses

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

type ServerReflectionRequest_FileContainingSymbol Uses

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

type ServerReflectionRequest_ListServices Uses

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

type ServerReflectionResponse Uses

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.

func (*ServerReflectionResponse) Descriptor Uses

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

func (*ServerReflectionResponse) GetAllExtensionNumbersResponse Uses

func (m *ServerReflectionResponse) GetAllExtensionNumbersResponse() *ExtensionNumberResponse

func (*ServerReflectionResponse) GetErrorResponse Uses

func (m *ServerReflectionResponse) GetErrorResponse() *ErrorResponse

func (*ServerReflectionResponse) GetFileDescriptorResponse Uses

func (m *ServerReflectionResponse) GetFileDescriptorResponse() *FileDescriptorResponse

func (*ServerReflectionResponse) GetListServicesResponse Uses

func (m *ServerReflectionResponse) GetListServicesResponse() *ListServiceResponse

func (*ServerReflectionResponse) GetMessageResponse Uses

func (m *ServerReflectionResponse) GetMessageResponse() isServerReflectionResponse_MessageResponse

func (*ServerReflectionResponse) GetOriginalRequest Uses

func (m *ServerReflectionResponse) GetOriginalRequest() *ServerReflectionRequest

func (*ServerReflectionResponse) GetValidHost Uses

func (m *ServerReflectionResponse) GetValidHost() string

func (*ServerReflectionResponse) ProtoMessage Uses

func (*ServerReflectionResponse) ProtoMessage()

func (*ServerReflectionResponse) Reset Uses

func (m *ServerReflectionResponse) Reset()

func (*ServerReflectionResponse) String Uses

func (m *ServerReflectionResponse) String() string

func (*ServerReflectionResponse) XXX_DiscardUnknown Uses

func (m *ServerReflectionResponse) XXX_DiscardUnknown()

func (*ServerReflectionResponse) XXX_Marshal Uses

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

func (*ServerReflectionResponse) XXX_Merge Uses

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

func (*ServerReflectionResponse) XXX_OneofFuncs Uses

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.

func (*ServerReflectionResponse) XXX_Size Uses

func (m *ServerReflectionResponse) XXX_Size() int

func (*ServerReflectionResponse) XXX_Unmarshal Uses

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

type ServerReflectionResponse_AllExtensionNumbersResponse Uses

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

type ServerReflectionResponse_ErrorResponse Uses

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

type ServerReflectionResponse_FileDescriptorResponse Uses

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

type ServerReflectionResponse_ListServicesResponse Uses

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

type ServerReflectionServer Uses

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.

type ServerReflection_ServerReflectionInfoClient Uses

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

type ServerReflection_ServerReflectionInfoServer Uses

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

type ServiceResponse Uses

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.

func (*ServiceResponse) Descriptor Uses

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

func (*ServiceResponse) GetName Uses

func (m *ServiceResponse) GetName() string

func (*ServiceResponse) ProtoMessage Uses

func (*ServiceResponse) ProtoMessage()

func (*ServiceResponse) Reset Uses

func (m *ServiceResponse) Reset()

func (*ServiceResponse) String Uses

func (m *ServiceResponse) String() string

func (*ServiceResponse) XXX_DiscardUnknown Uses

func (m *ServiceResponse) XXX_DiscardUnknown()

func (*ServiceResponse) XXX_Marshal Uses

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

func (*ServiceResponse) XXX_Merge Uses

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

func (*ServiceResponse) XXX_Size Uses

func (m *ServiceResponse) XXX_Size() int

func (*ServiceResponse) XXX_Unmarshal Uses

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

Package grpc_reflection_v1alpha imports 5 packages (graph) and is imported by 14 packages. Updated 2018-07-26. Refresh now. Tools for package owners.