api

package
v0.1.0-alpha3 Latest Latest
Warning

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

Go to latest
Published: May 12, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// optional bool errors = 1108;
	E_Errors = &file_api_kita_api_annotations_proto_extTypes[0]
)

Extension fields to descriptorpb.EnumOptions.

View Source
var File_api_kita_api_annotations_proto protoreflect.FileDescriptor
View Source
var File_api_kita_api_metadata_proto protoreflect.FileDescriptor
View Source
var Metadata_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "kita.api.Metadata",
	HandlerType: (*MetadataServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListServices",
			Handler:    _Metadata_ListServices_Handler,
		},
		{
			MethodName: "GetServiceMeta",
			Handler:    _Metadata_GetServiceMeta_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/kita/api/metadata.proto",
}

Metadata_ServiceDesc is the grpc.ServiceDesc for Metadata service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMetadataServer

func RegisterMetadataServer(s grpc.ServiceRegistrar, srv MetadataServer)

Types

type GetServiceMetaReply

type GetServiceMetaReply struct {
	ProtoSet *descriptorpb.FileDescriptorSet `protobuf:"bytes,1,opt,name=protoSet,proto3" json:"protoSet,omitempty"`
	// contains filtered or unexported fields
}

func (*GetServiceMetaReply) Descriptor deprecated

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

Deprecated: Use GetServiceMetaReply.ProtoReflect.Descriptor instead.

func (*GetServiceMetaReply) GetProtoSet

func (*GetServiceMetaReply) ProtoMessage

func (*GetServiceMetaReply) ProtoMessage()

func (*GetServiceMetaReply) ProtoReflect

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

func (*GetServiceMetaReply) Reset

func (x *GetServiceMetaReply) Reset()

func (*GetServiceMetaReply) String

func (x *GetServiceMetaReply) String() string

type GetServiceMetaRequest

type GetServiceMetaRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetServiceMetaRequest) Descriptor deprecated

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

Deprecated: Use GetServiceMetaRequest.ProtoReflect.Descriptor instead.

func (*GetServiceMetaRequest) GetName

func (x *GetServiceMetaRequest) GetName() string

func (*GetServiceMetaRequest) ProtoMessage

func (*GetServiceMetaRequest) ProtoMessage()

func (*GetServiceMetaRequest) ProtoReflect

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

func (*GetServiceMetaRequest) Reset

func (x *GetServiceMetaRequest) Reset()

func (*GetServiceMetaRequest) String

func (x *GetServiceMetaRequest) String() string

type ListServicesReply

type ListServicesReply struct {
	Services []string `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"`
	// contains filtered or unexported fields
}

func (*ListServicesReply) Descriptor deprecated

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

Deprecated: Use ListServicesReply.ProtoReflect.Descriptor instead.

func (*ListServicesReply) GetServices

func (x *ListServicesReply) GetServices() []string

func (*ListServicesReply) ProtoMessage

func (*ListServicesReply) ProtoMessage()

func (*ListServicesReply) ProtoReflect

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

func (*ListServicesReply) Reset

func (x *ListServicesReply) Reset()

func (*ListServicesReply) String

func (x *ListServicesReply) String() string

type MetadataClient

type MetadataClient interface {
	// ListServices list the full name of all services
	ListServices(ctx context.Context, in *anypb.Any, opts ...grpc.CallOption) (*ListServicesReply, error)
	// GetServiceMeta get the full fileDescriptorSet of service
	GetServiceMeta(ctx context.Context, in *GetServiceMetaRequest, opts ...grpc.CallOption) (*GetServiceMetaReply, error)
}

MetadataClient is the client API for Metadata 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 NewMetadataClient

func NewMetadataClient(cc grpc.ClientConnInterface) MetadataClient

type MetadataServer

type MetadataServer interface {
	// ListServices list the full name of all services
	ListServices(context.Context, *anypb.Any) (*ListServicesReply, error)
	// GetServiceMeta get the full fileDescriptorSet of service
	GetServiceMeta(context.Context, *GetServiceMetaRequest) (*GetServiceMetaReply, error)
	// contains filtered or unexported methods
}

MetadataServer is the server API for Metadata service. All implementations must embed UnimplementedMetadataServer for forward compatibility

type UnimplementedMetadataServer

type UnimplementedMetadataServer struct {
}

UnimplementedMetadataServer must be embedded to have forward compatible implementations.

func (UnimplementedMetadataServer) GetServiceMeta

func (UnimplementedMetadataServer) ListServices

type UnsafeMetadataServer

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

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

Jump to

Keyboard shortcuts

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