Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterDiscoveryServer(s grpc.ServiceRegistrar, srv DiscoveryServer)
- type DiscoveryClient
- type DiscoveryServer
- type GetVersions
- type GetVersions_Request
- type GetVersions_Response
- func (*GetVersions_Response) Descriptor() ([]byte, []int)deprecated
- func (x *GetVersions_Response) GetVersions() []string
- func (*GetVersions_Response) ProtoMessage()
- func (x *GetVersions_Response) ProtoReflect() protoreflect.Message
- func (x *GetVersions_Response) Reset()
- func (x *GetVersions_Response) String() string
- type UnimplementedDiscoveryServer
- type UnsafeDiscoveryServer
Constants ¶
const (
Discovery_GetVersions_FullMethodName = "/cloudquery.discovery.v0.Discovery/GetVersions"
)
Variables ¶
var Discovery_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cloudquery.discovery.v0.Discovery", HandlerType: (*DiscoveryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetVersions", Handler: _Discovery_GetVersions_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "plugin-pb/discovery/v0/discovery.proto", }
Discovery_ServiceDesc is the grpc.ServiceDesc for Discovery service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_plugin_pb_discovery_v0_discovery_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDiscoveryServer ¶
func RegisterDiscoveryServer(s grpc.ServiceRegistrar, srv DiscoveryServer)
Types ¶
type DiscoveryClient ¶
type DiscoveryClient interface { // Get the name of the plugin GetVersions(ctx context.Context, in *GetVersions_Request, opts ...grpc.CallOption) (*GetVersions_Response, error) }
DiscoveryClient is the client API for Discovery service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewDiscoveryClient ¶
func NewDiscoveryClient(cc grpc.ClientConnInterface) DiscoveryClient
type DiscoveryServer ¶
type DiscoveryServer interface { // Get the name of the plugin GetVersions(context.Context, *GetVersions_Request) (*GetVersions_Response, error) // contains filtered or unexported methods }
DiscoveryServer is the server API for Discovery service. All implementations must embed UnimplementedDiscoveryServer for forward compatibility.
type GetVersions ¶
type GetVersions struct {
// contains filtered or unexported fields
}
func (*GetVersions) Descriptor
deprecated
func (*GetVersions) Descriptor() ([]byte, []int)
Deprecated: Use GetVersions.ProtoReflect.Descriptor instead.
func (*GetVersions) ProtoMessage ¶
func (*GetVersions) ProtoMessage()
func (*GetVersions) ProtoReflect ¶
func (x *GetVersions) ProtoReflect() protoreflect.Message
func (*GetVersions) Reset ¶
func (x *GetVersions) Reset()
func (*GetVersions) String ¶
func (x *GetVersions) String() string
type GetVersions_Request ¶
type GetVersions_Request struct {
// contains filtered or unexported fields
}
func (*GetVersions_Request) Descriptor
deprecated
func (*GetVersions_Request) Descriptor() ([]byte, []int)
Deprecated: Use GetVersions_Request.ProtoReflect.Descriptor instead.
func (*GetVersions_Request) ProtoMessage ¶
func (*GetVersions_Request) ProtoMessage()
func (*GetVersions_Request) ProtoReflect ¶
func (x *GetVersions_Request) ProtoReflect() protoreflect.Message
func (*GetVersions_Request) Reset ¶
func (x *GetVersions_Request) Reset()
func (*GetVersions_Request) String ¶
func (x *GetVersions_Request) String() string
type GetVersions_Response ¶
type GetVersions_Response struct { Versions []string `protobuf:"bytes,1,rep,name=versions,proto3" json:"versions,omitempty"` // contains filtered or unexported fields }
func (*GetVersions_Response) Descriptor
deprecated
func (*GetVersions_Response) Descriptor() ([]byte, []int)
Deprecated: Use GetVersions_Response.ProtoReflect.Descriptor instead.
func (*GetVersions_Response) GetVersions ¶
func (x *GetVersions_Response) GetVersions() []string
func (*GetVersions_Response) ProtoMessage ¶
func (*GetVersions_Response) ProtoMessage()
func (*GetVersions_Response) ProtoReflect ¶
func (x *GetVersions_Response) ProtoReflect() protoreflect.Message
func (*GetVersions_Response) Reset ¶
func (x *GetVersions_Response) Reset()
func (*GetVersions_Response) String ¶
func (x *GetVersions_Response) String() string
type UnimplementedDiscoveryServer ¶
type UnimplementedDiscoveryServer struct{}
UnimplementedDiscoveryServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedDiscoveryServer) GetVersions ¶
func (UnimplementedDiscoveryServer) GetVersions(context.Context, *GetVersions_Request) (*GetVersions_Response, error)
type UnsafeDiscoveryServer ¶
type UnsafeDiscoveryServer interface {
// contains filtered or unexported methods
}
UnsafeDiscoveryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DiscoveryServer will result in compilation errors.