server

package
v0.0.0-...-25486a2 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_server_proto_executor_registry_proto protoreflect.FileDescriptor
View Source
var JobExecutorRegister_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.registry.JobExecutorRegister",
	HandlerType: (*JobExecutorRegisterServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ExecutorRegistry",
			Handler:    _JobExecutorRegister_ExecutorRegistry_Handler,
		},
		{
			MethodName: "ExecutorUnRegistry",
			Handler:    _JobExecutorRegister_ExecutorUnRegistry_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "server/proto/executor_registry.proto",
}

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

Functions

func RegisterJobExecutorRegisterServer

func RegisterJobExecutorRegisterServer(s grpc.ServiceRegistrar, srv JobExecutorRegisterServer)

Types

type JobExecutorRegisterClient

type JobExecutorRegisterClient interface {
	ExecutorRegistry(ctx context.Context, in *RegistryRequest, opts ...grpc.CallOption) (*RegistryReply, error)
	ExecutorUnRegistry(ctx context.Context, in *RegistryRequest, opts ...grpc.CallOption) (*RegistryReply, error)
}

JobExecutorRegisterClient is the client API for JobExecutorRegister 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.

type JobExecutorRegisterServer

type JobExecutorRegisterServer interface {
	ExecutorRegistry(context.Context, *RegistryRequest) (*RegistryReply, error)
	ExecutorUnRegistry(context.Context, *RegistryRequest) (*RegistryReply, error)
	// contains filtered or unexported methods
}

JobExecutorRegisterServer is the server API for JobExecutorRegister service. All implementations must embed UnimplementedJobExecutorRegisterServer for forward compatibility

type RegistryReply

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

func (*RegistryReply) Descriptor deprecated

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

Deprecated: Use RegistryReply.ProtoReflect.Descriptor instead.

func (*RegistryReply) GetMessage

func (x *RegistryReply) GetMessage() string

func (*RegistryReply) ProtoMessage

func (*RegistryReply) ProtoMessage()

func (*RegistryReply) ProtoReflect

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

func (*RegistryReply) Reset

func (x *RegistryReply) Reset()

func (*RegistryReply) String

func (x *RegistryReply) String() string

type RegistryRequest

type RegistryRequest struct {
	ServerName string   `protobuf:"bytes,1,opt,name=serverName,proto3" json:"serverName,omitempty"`
	ServerList []string `protobuf:"bytes,2,rep,name=serverList,proto3" json:"serverList,omitempty"`
	// contains filtered or unexported fields
}

func (*RegistryRequest) Descriptor deprecated

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

Deprecated: Use RegistryRequest.ProtoReflect.Descriptor instead.

func (*RegistryRequest) GetServerList

func (x *RegistryRequest) GetServerList() []string

func (*RegistryRequest) GetServerName

func (x *RegistryRequest) GetServerName() 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 RpcServer

type RpcServer struct {
	UnimplementedJobExecutorRegisterServer
}

func (*RpcServer) ExecutorRegistry

func (s *RpcServer) ExecutorRegistry(_ context.Context, in *RegistryRequest) (*RegistryReply, error)

func (*RpcServer) ExecutorUnRegistry

func (s *RpcServer) ExecutorUnRegistry(_ context.Context, in *RegistryRequest) (*RegistryReply, error)

type UnimplementedJobExecutorRegisterServer

type UnimplementedJobExecutorRegisterServer struct {
}

UnimplementedJobExecutorRegisterServer must be embedded to have forward compatible implementations.

func (UnimplementedJobExecutorRegisterServer) ExecutorRegistry

func (UnimplementedJobExecutorRegisterServer) ExecutorUnRegistry

type UnsafeJobExecutorRegisterServer

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

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

Jump to

Keyboard shortcuts

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