Documentation ¶
Overview ¶
Package scheduler is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterSchedulerServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterSchedulerServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SchedulerServiceClient) error
- func RegisterSchedulerServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterSchedulerServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SchedulerServiceServer) error
- func RegisterSchedulerServiceServer(s grpc.ServiceRegistrar, srv SchedulerServiceServer)
- type CreateSchedulerRequest
- func (*CreateSchedulerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSchedulerRequest) GetPattern() string
- func (*CreateSchedulerRequest) ProtoMessage()
- func (x *CreateSchedulerRequest) ProtoReflect() protoreflect.Message
- func (x *CreateSchedulerRequest) Reset()
- func (x *CreateSchedulerRequest) String() string
- type CreateSchedulerResponse
- type SchedulerServiceClient
- type SchedulerServiceServer
- type UnimplementedSchedulerServiceServer
- type UnsafeSchedulerServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_schedule_proto protoreflect.FileDescriptor
var File_svc_schedule_proto protoreflect.FileDescriptor
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.
func NewSchedulerServiceClient ¶
func NewSchedulerServiceClient(cc grpc.ClientConnInterface) SchedulerServiceClient
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 ¶
func (UnimplementedSchedulerServiceServer) CreateScheduler(context.Context, *CreateSchedulerRequest) (*CreateSchedulerResponse, error)
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.