proto

package
v0.0.0-...-3b29339 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Catalog_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "eventmesh.catalog.api.protocol.Catalog",
	HandlerType: (*CatalogServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Registry",
			Handler:    _Catalog_Registry_Handler,
		},
		{
			MethodName: "QueryOperations",
			Handler:    _Catalog_QueryOperations_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "catalog.proto",
}

Catalog_ServiceDesc is the grpc.ServiceDesc for Catalog 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_catalog_proto protoreflect.FileDescriptor

Functions

func RegisterCatalogServer

func RegisterCatalogServer(s grpc.ServiceRegistrar, srv CatalogServer)

Types

type CatalogClient

type CatalogClient interface {
	Registry(ctx context.Context, in *RegistryRequest, opts ...grpc.CallOption) (*RegistryResponse, error)
	QueryOperations(ctx context.Context, in *QueryOperationsRequest, opts ...grpc.CallOption) (*QueryOperationsResponse, error)
}

CatalogClient is the client API for Catalog 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 NewCatalogClient

func NewCatalogClient(cc grpc.ClientConnInterface) CatalogClient

type CatalogServer

type CatalogServer interface {
	Registry(context.Context, *RegistryRequest) (*RegistryResponse, error)
	QueryOperations(context.Context, *QueryOperationsRequest) (*QueryOperationsResponse, error)
	// contains filtered or unexported methods
}

CatalogServer is the server API for Catalog service. All implementations must embed UnimplementedCatalogServer for forward compatibility

type Operation

type Operation struct {
	ChannelName string `protobuf:"bytes,1,opt,name=channel_name,json=channelName,proto3" json:"channel_name,omitempty"`
	Schema      string `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"`
	// publish/subscribe
	Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*Operation) Descriptor deprecated

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

Deprecated: Use Operation.ProtoReflect.Descriptor instead.

func (*Operation) GetChannelName

func (x *Operation) GetChannelName() string

func (*Operation) GetSchema

func (x *Operation) GetSchema() string

func (*Operation) GetType

func (x *Operation) GetType() string

func (*Operation) ProtoMessage

func (*Operation) ProtoMessage()

func (*Operation) ProtoReflect

func (x *Operation) ProtoReflect() protoreflect.Message

func (*Operation) Reset

func (x *Operation) Reset()

func (*Operation) String

func (x *Operation) String() string

type QueryOperationsRequest

type QueryOperationsRequest struct {
	ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
	OperationId string `protobuf:"bytes,2,opt,name=operation_id,json=operationId,proto3" json:"operation_id,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryOperationsRequest) Descriptor deprecated

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

Deprecated: Use QueryOperationsRequest.ProtoReflect.Descriptor instead.

func (*QueryOperationsRequest) GetOperationId

func (x *QueryOperationsRequest) GetOperationId() string

func (*QueryOperationsRequest) GetServiceName

func (x *QueryOperationsRequest) GetServiceName() string

func (*QueryOperationsRequest) ProtoMessage

func (*QueryOperationsRequest) ProtoMessage()

func (*QueryOperationsRequest) ProtoReflect

func (x *QueryOperationsRequest) ProtoReflect() protoreflect.Message

func (*QueryOperationsRequest) Reset

func (x *QueryOperationsRequest) Reset()

func (*QueryOperationsRequest) String

func (x *QueryOperationsRequest) String() string

type QueryOperationsResponse

type QueryOperationsResponse struct {
	Operations []*Operation `protobuf:"bytes,1,rep,name=operations,proto3" json:"operations,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryOperationsResponse) Descriptor deprecated

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

Deprecated: Use QueryOperationsResponse.ProtoReflect.Descriptor instead.

func (*QueryOperationsResponse) GetOperations

func (x *QueryOperationsResponse) GetOperations() []*Operation

func (*QueryOperationsResponse) ProtoMessage

func (*QueryOperationsResponse) ProtoMessage()

func (*QueryOperationsResponse) ProtoReflect

func (x *QueryOperationsResponse) ProtoReflect() protoreflect.Message

func (*QueryOperationsResponse) Reset

func (x *QueryOperationsResponse) Reset()

func (*QueryOperationsResponse) String

func (x *QueryOperationsResponse) String() string

type RegistryRequest

type RegistryRequest struct {
	FileName   string `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
	Definition string `protobuf:"bytes,2,opt,name=definition,proto3" json:"definition,omitempty"`
	// contains filtered or unexported fields
}

func (*RegistryRequest) Descriptor deprecated

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

Deprecated: Use RegistryRequest.ProtoReflect.Descriptor instead.

func (*RegistryRequest) GetDefinition

func (x *RegistryRequest) GetDefinition() string

func (*RegistryRequest) GetFileName

func (x *RegistryRequest) GetFileName() string

func (*RegistryRequest) ProtoMessage

func (*RegistryRequest) ProtoMessage()

func (*RegistryRequest) ProtoReflect

func (x *RegistryRequest) ProtoReflect() protoreflect.Message

func (*RegistryRequest) Reset

func (x *RegistryRequest) Reset()

func (*RegistryRequest) String

func (x *RegistryRequest) String() string

type RegistryResponse

type RegistryResponse struct {
	// contains filtered or unexported fields
}

func (*RegistryResponse) Descriptor deprecated

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

Deprecated: Use RegistryResponse.ProtoReflect.Descriptor instead.

func (*RegistryResponse) ProtoMessage

func (*RegistryResponse) ProtoMessage()

func (*RegistryResponse) ProtoReflect

func (x *RegistryResponse) ProtoReflect() protoreflect.Message

func (*RegistryResponse) Reset

func (x *RegistryResponse) Reset()

func (*RegistryResponse) String

func (x *RegistryResponse) String() string

type UnimplementedCatalogServer

type UnimplementedCatalogServer struct {
}

UnimplementedCatalogServer must be embedded to have forward compatible implementations.

func (UnimplementedCatalogServer) QueryOperations

func (UnimplementedCatalogServer) Registry

type UnsafeCatalogServer

type UnsafeCatalogServer interface {
	// contains filtered or unexported methods
}

UnsafeCatalogServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CatalogServer will result in compilation errors.

Jump to

Keyboard shortcuts

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