scheduler

package
v0.0.0-...-8fe1f1f Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package scheduler is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var File_schedule_proto protoreflect.FileDescriptor
View Source
var File_svc_schedule_proto protoreflect.FileDescriptor
View Source
var SchedulerService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "scheduler.SchedulerService",
	HandlerType: (*SchedulerServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateScheduler",
			Handler:    _SchedulerService_CreateScheduler_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "svc_schedule.proto",
}

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

Functions

func RegisterSchedulerServiceHandler

func RegisterSchedulerServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterSchedulerServiceHandler registers the http handlers for service SchedulerService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterSchedulerServiceHandlerClient

func RegisterSchedulerServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SchedulerServiceClient) error

RegisterSchedulerServiceHandlerClient registers the http handlers for service SchedulerService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SchedulerServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SchedulerServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SchedulerServiceClient" to call the correct interceptors.

func RegisterSchedulerServiceHandlerFromEndpoint

func RegisterSchedulerServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterSchedulerServiceHandlerFromEndpoint is same as RegisterSchedulerServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterSchedulerServiceHandlerServer

func RegisterSchedulerServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SchedulerServiceServer) error

RegisterSchedulerServiceHandlerServer registers the http handlers for service SchedulerService to "mux". UnaryRPC :call SchedulerServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterSchedulerServiceHandlerFromEndpoint instead.

func RegisterSchedulerServiceServer

func RegisterSchedulerServiceServer(s grpc.ServiceRegistrar, srv SchedulerServiceServer)

Types

type CreateSchedulerRequest

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

func (*CreateSchedulerRequest) Descriptor deprecated

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

Deprecated: Use CreateSchedulerRequest.ProtoReflect.Descriptor instead.

func (*CreateSchedulerRequest) GetPattern

func (x *CreateSchedulerRequest) GetPattern() string

func (*CreateSchedulerRequest) ProtoMessage

func (*CreateSchedulerRequest) ProtoMessage()

func (*CreateSchedulerRequest) ProtoReflect

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

func (*CreateSchedulerRequest) Reset

func (x *CreateSchedulerRequest) Reset()

func (*CreateSchedulerRequest) String

func (x *CreateSchedulerRequest) String() string

type CreateSchedulerResponse

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

func (*CreateSchedulerResponse) Descriptor deprecated

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

Deprecated: Use CreateSchedulerResponse.ProtoReflect.Descriptor instead.

func (*CreateSchedulerResponse) ProtoMessage

func (*CreateSchedulerResponse) ProtoMessage()

func (*CreateSchedulerResponse) ProtoReflect

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

func (*CreateSchedulerResponse) Reset

func (x *CreateSchedulerResponse) Reset()

func (*CreateSchedulerResponse) String

func (x *CreateSchedulerResponse) String() string

type SchedulerServiceClient

type SchedulerServiceClient interface {
	CreateScheduler(ctx context.Context, in *CreateSchedulerRequest, opts ...grpc.CallOption) (*CreateSchedulerResponse, error)
}

SchedulerServiceClient is the client API for SchedulerService 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 SchedulerServiceServer

type SchedulerServiceServer interface {
	CreateScheduler(context.Context, *CreateSchedulerRequest) (*CreateSchedulerResponse, error)
	// contains filtered or unexported methods
}

SchedulerServiceServer is the server API for SchedulerService service. All implementations must embed UnimplementedSchedulerServiceServer for forward compatibility

type UnimplementedSchedulerServiceServer

type UnimplementedSchedulerServiceServer struct {
}

UnimplementedSchedulerServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedSchedulerServiceServer) CreateScheduler

type UnsafeSchedulerServiceServer

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

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

Jump to

Keyboard shortcuts

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