discovery

package
v1.26.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MPL-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

View Source
const (
	Discovery_GetVersions_FullMethodName = "/cloudquery.discovery.v1.Discovery/GetVersions"
)

Variables

View Source
var Discovery_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cloudquery.discovery.v1.Discovery",
	HandlerType: (*DiscoveryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetVersions",
			Handler:    _Discovery_GetVersions_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "plugin-pb/discovery/v1/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)

View Source
var File_plugin_pb_discovery_v1_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 []int32 `protobuf:"varint,1,rep,packed,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() []int32

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL