jobs

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: MIT Imports: 27 Imported by: 2

Documentation

Overview

Package jobs is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var File_jobs_jobs_proto protoreflect.FileDescriptor

Functions

func RegisterMruVJobsServiceHandler

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

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

func RegisterMruVJobsServiceHandlerClient

func RegisterMruVJobsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MruVJobsServiceClient) error

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

func RegisterMruVJobsServiceHandlerFromEndpoint

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

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

func RegisterMruVJobsServiceHandlerServer

func RegisterMruVJobsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MruVJobsServiceServer) error

RegisterMruVJobsServiceHandlerServer registers the http handlers for service MruVJobsService to "mux". UnaryRPC :call MruVJobsServiceServer 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 RegisterMruVJobsServiceHandlerFromEndpoint instead.

func RegisterMruVJobsServiceServer

func RegisterMruVJobsServiceServer(s *grpc.Server, srv MruVJobsServiceServer)

Types

type CreateJobRequest

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

Request message for rpc `CreateJob`.

func (*CreateJobRequest) Descriptor deprecated

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

Deprecated: Use CreateJobRequest.ProtoReflect.Descriptor instead.

func (*CreateJobRequest) ProtoMessage

func (*CreateJobRequest) ProtoMessage()

func (*CreateJobRequest) ProtoReflect added in v0.8.4

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

func (*CreateJobRequest) Reset

func (x *CreateJobRequest) Reset()

func (*CreateJobRequest) String

func (x *CreateJobRequest) String() string

func (*CreateJobRequest) Validate

func (m *CreateJobRequest) Validate() error

Validate checks the field values on CreateJobRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type CreateJobRequestValidationError

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

CreateJobRequestValidationError is the validation error returned by CreateJobRequest.Validate if the designated constraints aren't met.

func (CreateJobRequestValidationError) Cause

Cause function returns cause value.

func (CreateJobRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateJobRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateJobRequestValidationError) Field

Field function returns field value.

func (CreateJobRequestValidationError) Key

Key function returns key value.

func (CreateJobRequestValidationError) Reason

Reason function returns reason value.

type CreateJobResponse

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

Response message for rpc `CreateJob`.

func (*CreateJobResponse) Descriptor deprecated

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

Deprecated: Use CreateJobResponse.ProtoReflect.Descriptor instead.

func (*CreateJobResponse) ProtoMessage

func (*CreateJobResponse) ProtoMessage()

func (*CreateJobResponse) ProtoReflect added in v0.8.4

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

func (*CreateJobResponse) Reset

func (x *CreateJobResponse) Reset()

func (*CreateJobResponse) String

func (x *CreateJobResponse) String() string

func (*CreateJobResponse) Validate

func (m *CreateJobResponse) Validate() error

Validate checks the field values on CreateJobResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type CreateJobResponseValidationError

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

CreateJobResponseValidationError is the validation error returned by CreateJobResponse.Validate if the designated constraints aren't met.

func (CreateJobResponseValidationError) Cause

Cause function returns cause value.

func (CreateJobResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateJobResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateJobResponseValidationError) Field

Field function returns field value.

func (CreateJobResponseValidationError) Key

Key function returns key value.

func (CreateJobResponseValidationError) Reason

Reason function returns reason value.

type DeleteJobRequest

type DeleteJobRequest struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

Request message for rpc `DeleteJob`.

func (*DeleteJobRequest) Descriptor deprecated

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

Deprecated: Use DeleteJobRequest.ProtoReflect.Descriptor instead.

func (*DeleteJobRequest) GetId

func (x *DeleteJobRequest) GetId() uint32

func (*DeleteJobRequest) ProtoMessage

func (*DeleteJobRequest) ProtoMessage()

func (*DeleteJobRequest) ProtoReflect added in v0.8.4

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

func (*DeleteJobRequest) Reset

func (x *DeleteJobRequest) Reset()

func (*DeleteJobRequest) String

func (x *DeleteJobRequest) String() string

func (*DeleteJobRequest) Validate

func (m *DeleteJobRequest) Validate() error

Validate checks the field values on DeleteJobRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type DeleteJobRequestValidationError

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

DeleteJobRequestValidationError is the validation error returned by DeleteJobRequest.Validate if the designated constraints aren't met.

func (DeleteJobRequestValidationError) Cause

Cause function returns cause value.

func (DeleteJobRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteJobRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteJobRequestValidationError) Field

Field function returns field value.

func (DeleteJobRequestValidationError) Key

Key function returns key value.

func (DeleteJobRequestValidationError) Reason

Reason function returns reason value.

type DeleteJobResponse

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

Response message for rpc `DeleteJob`.

func (*DeleteJobResponse) Descriptor deprecated

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

Deprecated: Use DeleteJobResponse.ProtoReflect.Descriptor instead.

func (*DeleteJobResponse) ProtoMessage

func (*DeleteJobResponse) ProtoMessage()

func (*DeleteJobResponse) ProtoReflect added in v0.8.4

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

func (*DeleteJobResponse) Reset

func (x *DeleteJobResponse) Reset()

func (*DeleteJobResponse) String

func (x *DeleteJobResponse) String() string

func (*DeleteJobResponse) Validate

func (m *DeleteJobResponse) Validate() error

Validate checks the field values on DeleteJobResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type DeleteJobResponseValidationError

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

DeleteJobResponseValidationError is the validation error returned by DeleteJobResponse.Validate if the designated constraints aren't met.

func (DeleteJobResponseValidationError) Cause

Cause function returns cause value.

func (DeleteJobResponseValidationError) Error

Error satisfies the builtin error interface

func (DeleteJobResponseValidationError) ErrorName

ErrorName returns error name.

func (DeleteJobResponseValidationError) Field

Field function returns field value.

func (DeleteJobResponseValidationError) Key

Key function returns key value.

func (DeleteJobResponseValidationError) Reason

Reason function returns reason value.

type GetJobRequest

type GetJobRequest struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

Request message for rpc `GetJob`.

func (*GetJobRequest) Descriptor deprecated

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

Deprecated: Use GetJobRequest.ProtoReflect.Descriptor instead.

func (*GetJobRequest) GetId

func (x *GetJobRequest) GetId() uint32

func (*GetJobRequest) ProtoMessage

func (*GetJobRequest) ProtoMessage()

func (*GetJobRequest) ProtoReflect added in v0.8.4

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

func (*GetJobRequest) Reset

func (x *GetJobRequest) Reset()

func (*GetJobRequest) String

func (x *GetJobRequest) String() string

func (*GetJobRequest) Validate

func (m *GetJobRequest) Validate() error

Validate checks the field values on GetJobRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type GetJobRequestValidationError

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

GetJobRequestValidationError is the validation error returned by GetJobRequest.Validate if the designated constraints aren't met.

func (GetJobRequestValidationError) Cause

Cause function returns cause value.

func (GetJobRequestValidationError) Error

Error satisfies the builtin error interface

func (GetJobRequestValidationError) ErrorName

func (e GetJobRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetJobRequestValidationError) Field

Field function returns field value.

func (GetJobRequestValidationError) Key

Key function returns key value.

func (GetJobRequestValidationError) Reason

Reason function returns reason value.

type GetJobResponse

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

Response message for rpc `GetJob`.

func (*GetJobResponse) Descriptor deprecated

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

Deprecated: Use GetJobResponse.ProtoReflect.Descriptor instead.

func (*GetJobResponse) ProtoMessage

func (*GetJobResponse) ProtoMessage()

func (*GetJobResponse) ProtoReflect added in v0.8.4

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

func (*GetJobResponse) Reset

func (x *GetJobResponse) Reset()

func (*GetJobResponse) String

func (x *GetJobResponse) String() string

func (*GetJobResponse) Validate

func (m *GetJobResponse) Validate() error

Validate checks the field values on GetJobResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type GetJobResponseValidationError

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

GetJobResponseValidationError is the validation error returned by GetJobResponse.Validate if the designated constraints aren't met.

func (GetJobResponseValidationError) Cause

Cause function returns cause value.

func (GetJobResponseValidationError) Error

Error satisfies the builtin error interface

func (GetJobResponseValidationError) ErrorName

func (e GetJobResponseValidationError) ErrorName() string

ErrorName returns error name.

func (GetJobResponseValidationError) Field

Field function returns field value.

func (GetJobResponseValidationError) Key

Key function returns key value.

func (GetJobResponseValidationError) Reason

Reason function returns reason value.

type MruVJobsServiceClient

type MruVJobsServiceClient interface {
	// Create a job.
	CreateJob(ctx context.Context, in *CreateJobRequest, opts ...grpc.CallOption) (*CreateJobResponse, error)
	// Get a job.
	GetJob(ctx context.Context, in *GetJobRequest, opts ...grpc.CallOption) (*GetJobResponse, error)
	// Update a job.
	UpdateJob(ctx context.Context, in *UpdateJobRequest, opts ...grpc.CallOption) (*UpdateJobResponse, error)
	// Delete a job.
	DeleteJob(ctx context.Context, in *DeleteJobRequest, opts ...grpc.CallOption) (*DeleteJobResponse, error)
}

MruVJobsServiceClient is the client API for MruVJobsService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type MruVJobsServiceServer

type MruVJobsServiceServer interface {
	// Create a job.
	CreateJob(context.Context, *CreateJobRequest) (*CreateJobResponse, error)
	// Get a job.
	GetJob(context.Context, *GetJobRequest) (*GetJobResponse, error)
	// Update a job.
	UpdateJob(context.Context, *UpdateJobRequest) (*UpdateJobResponse, error)
	// Delete a job.
	DeleteJob(context.Context, *DeleteJobRequest) (*DeleteJobResponse, error)
}

MruVJobsServiceServer is the server API for MruVJobsService service.

type UnimplementedMruVJobsServiceServer

type UnimplementedMruVJobsServiceServer struct {
}

UnimplementedMruVJobsServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedMruVJobsServiceServer) CreateJob

func (*UnimplementedMruVJobsServiceServer) DeleteJob

func (*UnimplementedMruVJobsServiceServer) GetJob

func (*UnimplementedMruVJobsServiceServer) UpdateJob

type UpdateJobRequest

type UpdateJobRequest struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

Request message for rpc `UpdateJob`.

func (*UpdateJobRequest) Descriptor deprecated

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

Deprecated: Use UpdateJobRequest.ProtoReflect.Descriptor instead.

func (*UpdateJobRequest) GetId

func (x *UpdateJobRequest) GetId() uint32

func (*UpdateJobRequest) ProtoMessage

func (*UpdateJobRequest) ProtoMessage()

func (*UpdateJobRequest) ProtoReflect added in v0.8.4

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

func (*UpdateJobRequest) Reset

func (x *UpdateJobRequest) Reset()

func (*UpdateJobRequest) String

func (x *UpdateJobRequest) String() string

func (*UpdateJobRequest) Validate

func (m *UpdateJobRequest) Validate() error

Validate checks the field values on UpdateJobRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type UpdateJobRequestValidationError

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

UpdateJobRequestValidationError is the validation error returned by UpdateJobRequest.Validate if the designated constraints aren't met.

func (UpdateJobRequestValidationError) Cause

Cause function returns cause value.

func (UpdateJobRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateJobRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateJobRequestValidationError) Field

Field function returns field value.

func (UpdateJobRequestValidationError) Key

Key function returns key value.

func (UpdateJobRequestValidationError) Reason

Reason function returns reason value.

type UpdateJobResponse

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

Response message for rpc `UpdateJob`.

func (*UpdateJobResponse) Descriptor deprecated

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

Deprecated: Use UpdateJobResponse.ProtoReflect.Descriptor instead.

func (*UpdateJobResponse) ProtoMessage

func (*UpdateJobResponse) ProtoMessage()

func (*UpdateJobResponse) ProtoReflect added in v0.8.4

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

func (*UpdateJobResponse) Reset

func (x *UpdateJobResponse) Reset()

func (*UpdateJobResponse) String

func (x *UpdateJobResponse) String() string

func (*UpdateJobResponse) Validate

func (m *UpdateJobResponse) Validate() error

Validate checks the field values on UpdateJobResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type UpdateJobResponseValidationError

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

UpdateJobResponseValidationError is the validation error returned by UpdateJobResponse.Validate if the designated constraints aren't met.

func (UpdateJobResponseValidationError) Cause

Cause function returns cause value.

func (UpdateJobResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateJobResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateJobResponseValidationError) Field

Field function returns field value.

func (UpdateJobResponseValidationError) Key

Key function returns key value.

func (UpdateJobResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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