Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterJobHTTPServer(s *http.Server, srv JobHTTPServer)
- func RegisterJobServer(s grpc.ServiceRegistrar, srv JobServer)
- type CreateJobReply
- func (*CreateJobReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateJobReply) GetId() uint32
- func (*CreateJobReply) ProtoMessage()
- func (x *CreateJobReply) ProtoReflect() protoreflect.Message
- func (x *CreateJobReply) Reset()
- func (x *CreateJobReply) String() string
- func (m *CreateJobReply) Validate() error
- func (m *CreateJobReply) ValidateAll() error
- type CreateJobReplyMultiError
- type CreateJobReplyValidationError
- func (e CreateJobReplyValidationError) Cause() error
- func (e CreateJobReplyValidationError) Error() string
- func (e CreateJobReplyValidationError) ErrorName() string
- func (e CreateJobReplyValidationError) Field() string
- func (e CreateJobReplyValidationError) Key() bool
- func (e CreateJobReplyValidationError) Reason() string
- type CreateJobRequest
- func (*CreateJobRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateJobRequest) GetDescription() string
- func (x *CreateJobRequest) GetKeyword() string
- func (x *CreateJobRequest) GetName() string
- func (x *CreateJobRequest) GetWeight() int32
- func (*CreateJobRequest) ProtoMessage()
- func (x *CreateJobRequest) ProtoReflect() protoreflect.Message
- func (x *CreateJobRequest) Reset()
- func (x *CreateJobRequest) String() string
- func (m *CreateJobRequest) Validate() error
- func (m *CreateJobRequest) ValidateAll() error
- type CreateJobRequestMultiError
- type CreateJobRequestValidationError
- func (e CreateJobRequestValidationError) Cause() error
- func (e CreateJobRequestValidationError) Error() string
- func (e CreateJobRequestValidationError) ErrorName() string
- func (e CreateJobRequestValidationError) Field() string
- func (e CreateJobRequestValidationError) Key() bool
- func (e CreateJobRequestValidationError) Reason() string
- type DeleteJobReply
- func (*DeleteJobReply) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteJobReply) GetTotal() uint32
- func (*DeleteJobReply) ProtoMessage()
- func (x *DeleteJobReply) ProtoReflect() protoreflect.Message
- func (x *DeleteJobReply) Reset()
- func (x *DeleteJobReply) String() string
- func (m *DeleteJobReply) Validate() error
- func (m *DeleteJobReply) ValidateAll() error
- type DeleteJobReplyMultiError
- type DeleteJobReplyValidationError
- func (e DeleteJobReplyValidationError) Cause() error
- func (e DeleteJobReplyValidationError) Error() string
- func (e DeleteJobReplyValidationError) ErrorName() string
- func (e DeleteJobReplyValidationError) Field() string
- func (e DeleteJobReplyValidationError) Key() bool
- func (e DeleteJobReplyValidationError) Reason() string
- type DeleteJobRequest
- func (*DeleteJobRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteJobRequest) GetIds() []uint32
- func (*DeleteJobRequest) ProtoMessage()
- func (x *DeleteJobRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteJobRequest) Reset()
- func (x *DeleteJobRequest) String() string
- func (m *DeleteJobRequest) Validate() error
- func (m *DeleteJobRequest) ValidateAll() error
- type DeleteJobRequestMultiError
- type DeleteJobRequestValidationError
- func (e DeleteJobRequestValidationError) Cause() error
- func (e DeleteJobRequestValidationError) Error() string
- func (e DeleteJobRequestValidationError) ErrorName() string
- func (e DeleteJobRequestValidationError) Field() string
- func (e DeleteJobRequestValidationError) Key() bool
- func (e DeleteJobRequestValidationError) Reason() string
- type GetJobReply
- func (*GetJobReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetJobReply) GetCreatedAt() uint32
- func (x *GetJobReply) GetDescription() string
- func (x *GetJobReply) GetId() uint32
- func (x *GetJobReply) GetKeyword() string
- func (x *GetJobReply) GetName() string
- func (x *GetJobReply) GetUpdatedAt() uint32
- func (x *GetJobReply) GetWeight() int32
- func (*GetJobReply) ProtoMessage()
- func (x *GetJobReply) ProtoReflect() protoreflect.Message
- func (x *GetJobReply) Reset()
- func (x *GetJobReply) String() string
- func (m *GetJobReply) Validate() error
- func (m *GetJobReply) ValidateAll() error
- type GetJobReplyMultiError
- type GetJobReplyValidationError
- func (e GetJobReplyValidationError) Cause() error
- func (e GetJobReplyValidationError) Error() string
- func (e GetJobReplyValidationError) ErrorName() string
- func (e GetJobReplyValidationError) Field() string
- func (e GetJobReplyValidationError) Key() bool
- func (e GetJobReplyValidationError) Reason() string
- type GetJobRequest
- func (*GetJobRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetJobRequest) GetId() uint32
- func (x *GetJobRequest) GetKeyword() string
- func (*GetJobRequest) ProtoMessage()
- func (x *GetJobRequest) ProtoReflect() protoreflect.Message
- func (x *GetJobRequest) Reset()
- func (x *GetJobRequest) String() string
- func (m *GetJobRequest) Validate() error
- func (m *GetJobRequest) ValidateAll() error
- type GetJobRequestMultiError
- type GetJobRequestValidationError
- func (e GetJobRequestValidationError) Cause() error
- func (e GetJobRequestValidationError) Error() string
- func (e GetJobRequestValidationError) ErrorName() string
- func (e GetJobRequestValidationError) Field() string
- func (e GetJobRequestValidationError) Key() bool
- func (e GetJobRequestValidationError) Reason() string
- type JobClient
- type JobHTTPClient
- type JobHTTPClientImpl
- func (c *JobHTTPClientImpl) CreateJob(ctx context.Context, in *CreateJobRequest, opts ...http.CallOption) (*CreateJobReply, error)
- func (c *JobHTTPClientImpl) DeleteJob(ctx context.Context, in *DeleteJobRequest, opts ...http.CallOption) (*DeleteJobReply, error)
- func (c *JobHTTPClientImpl) GetJob(ctx context.Context, in *GetJobRequest, opts ...http.CallOption) (*GetJobReply, error)
- func (c *JobHTTPClientImpl) ListJob(ctx context.Context, in *ListJobRequest, opts ...http.CallOption) (*ListJobReply, error)
- func (c *JobHTTPClientImpl) UpdateJob(ctx context.Context, in *UpdateJobRequest, opts ...http.CallOption) (*UpdateJobReply, error)
- type JobHTTPServer
- type JobServer
- type ListJobReply
- func (*ListJobReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListJobReply) GetList() []*ListJobReply_Job
- func (x *ListJobReply) GetTotal() uint32
- func (*ListJobReply) ProtoMessage()
- func (x *ListJobReply) ProtoReflect() protoreflect.Message
- func (x *ListJobReply) Reset()
- func (x *ListJobReply) String() string
- func (m *ListJobReply) Validate() error
- func (m *ListJobReply) ValidateAll() error
- type ListJobReplyMultiError
- type ListJobReplyValidationError
- func (e ListJobReplyValidationError) Cause() error
- func (e ListJobReplyValidationError) Error() string
- func (e ListJobReplyValidationError) ErrorName() string
- func (e ListJobReplyValidationError) Field() string
- func (e ListJobReplyValidationError) Key() bool
- func (e ListJobReplyValidationError) Reason() string
- type ListJobReply_Job
- func (*ListJobReply_Job) Descriptor() ([]byte, []int)deprecated
- func (x *ListJobReply_Job) GetCreatedAt() uint32
- func (x *ListJobReply_Job) GetDescription() string
- func (x *ListJobReply_Job) GetId() uint32
- func (x *ListJobReply_Job) GetKeyword() string
- func (x *ListJobReply_Job) GetName() string
- func (x *ListJobReply_Job) GetUpdatedAt() uint32
- func (x *ListJobReply_Job) GetWeight() int32
- func (*ListJobReply_Job) ProtoMessage()
- func (x *ListJobReply_Job) ProtoReflect() protoreflect.Message
- func (x *ListJobReply_Job) Reset()
- func (x *ListJobReply_Job) String() string
- func (m *ListJobReply_Job) Validate() error
- func (m *ListJobReply_Job) ValidateAll() error
- type ListJobReply_JobMultiError
- type ListJobReply_JobValidationError
- func (e ListJobReply_JobValidationError) Cause() error
- func (e ListJobReply_JobValidationError) Error() string
- func (e ListJobReply_JobValidationError) ErrorName() string
- func (e ListJobReply_JobValidationError) Field() string
- func (e ListJobReply_JobValidationError) Key() bool
- func (e ListJobReply_JobValidationError) Reason() string
- type ListJobRequest
- func (*ListJobRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListJobRequest) GetKeyword() string
- func (x *ListJobRequest) GetName() string
- func (x *ListJobRequest) GetOrder() string
- func (x *ListJobRequest) GetOrderBy() string
- func (x *ListJobRequest) GetPage() uint32
- func (x *ListJobRequest) GetPageSize() uint32
- func (*ListJobRequest) ProtoMessage()
- func (x *ListJobRequest) ProtoReflect() protoreflect.Message
- func (x *ListJobRequest) Reset()
- func (x *ListJobRequest) String() string
- func (m *ListJobRequest) Validate() error
- func (m *ListJobRequest) ValidateAll() error
- type ListJobRequestMultiError
- type ListJobRequestValidationError
- func (e ListJobRequestValidationError) Cause() error
- func (e ListJobRequestValidationError) Error() string
- func (e ListJobRequestValidationError) ErrorName() string
- func (e ListJobRequestValidationError) Field() string
- func (e ListJobRequestValidationError) Key() bool
- func (e ListJobRequestValidationError) Reason() string
- type UnimplementedJobServer
- func (UnimplementedJobServer) CreateJob(context.Context, *CreateJobRequest) (*CreateJobReply, error)
- func (UnimplementedJobServer) DeleteJob(context.Context, *DeleteJobRequest) (*DeleteJobReply, error)
- func (UnimplementedJobServer) GetJob(context.Context, *GetJobRequest) (*GetJobReply, error)
- func (UnimplementedJobServer) ListJob(context.Context, *ListJobRequest) (*ListJobReply, error)
- func (UnimplementedJobServer) UpdateJob(context.Context, *UpdateJobRequest) (*UpdateJobReply, error)
- type UnsafeJobServer
- type UpdateJobReply
- func (*UpdateJobReply) Descriptor() ([]byte, []int)deprecated
- func (*UpdateJobReply) ProtoMessage()
- func (x *UpdateJobReply) ProtoReflect() protoreflect.Message
- func (x *UpdateJobReply) Reset()
- func (x *UpdateJobReply) String() string
- func (m *UpdateJobReply) Validate() error
- func (m *UpdateJobReply) ValidateAll() error
- type UpdateJobReplyMultiError
- type UpdateJobReplyValidationError
- func (e UpdateJobReplyValidationError) Cause() error
- func (e UpdateJobReplyValidationError) Error() string
- func (e UpdateJobReplyValidationError) ErrorName() string
- func (e UpdateJobReplyValidationError) Field() string
- func (e UpdateJobReplyValidationError) Key() bool
- func (e UpdateJobReplyValidationError) Reason() string
- type UpdateJobRequest
- func (*UpdateJobRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateJobRequest) GetDescription() string
- func (x *UpdateJobRequest) GetId() uint32
- func (x *UpdateJobRequest) GetKeyword() string
- func (x *UpdateJobRequest) GetName() string
- func (x *UpdateJobRequest) GetWeight() int32
- func (*UpdateJobRequest) ProtoMessage()
- func (x *UpdateJobRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateJobRequest) Reset()
- func (x *UpdateJobRequest) String() string
- func (m *UpdateJobRequest) Validate() error
- func (m *UpdateJobRequest) ValidateAll() error
- type UpdateJobRequestMultiError
- type UpdateJobRequestValidationError
- func (e UpdateJobRequestValidationError) Cause() error
- func (e UpdateJobRequestValidationError) Error() string
- func (e UpdateJobRequestValidationError) ErrorName() string
- func (e UpdateJobRequestValidationError) Field() string
- func (e UpdateJobRequestValidationError) Key() bool
- func (e UpdateJobRequestValidationError) Reason() string
Constants ¶
const ( Job_ListJob_FullMethodName = "/manager.api.manager.job.v1.Job/ListJob" Job_CreateJob_FullMethodName = "/manager.api.manager.job.v1.Job/CreateJob" Job_UpdateJob_FullMethodName = "/manager.api.manager.job.v1.Job/UpdateJob" Job_DeleteJob_FullMethodName = "/manager.api.manager.job.v1.Job/DeleteJob" Job_GetJob_FullMethodName = "/manager.api.manager.job.v1.Job/GetJob" )
const OperationJobCreateJob = "/manager.api.manager.job.v1.Job/CreateJob"
const OperationJobDeleteJob = "/manager.api.manager.job.v1.Job/DeleteJob"
const OperationJobGetJob = "/manager.api.manager.job.v1.Job/GetJob"
const OperationJobListJob = "/manager.api.manager.job.v1.Job/ListJob"
const OperationJobUpdateJob = "/manager.api.manager.job.v1.Job/UpdateJob"
Variables ¶
var File_api_manager_job_manager_job_proto protoreflect.FileDescriptor
var File_api_manager_job_manager_job_service_proto protoreflect.FileDescriptor
var Job_ServiceDesc = grpc.ServiceDesc{ ServiceName: "manager.api.manager.job.v1.Job", HandlerType: (*JobServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListJob", Handler: _Job_ListJob_Handler, }, { MethodName: "CreateJob", Handler: _Job_CreateJob_Handler, }, { MethodName: "UpdateJob", Handler: _Job_UpdateJob_Handler, }, { MethodName: "DeleteJob", Handler: _Job_DeleteJob_Handler, }, { MethodName: "GetJob", Handler: _Job_GetJob_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/manager/job/manager_job_service.proto", }
Job_ServiceDesc is the grpc.ServiceDesc for Job service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterJobHTTPServer ¶
func RegisterJobHTTPServer(s *http.Server, srv JobHTTPServer)
func RegisterJobServer ¶
func RegisterJobServer(s grpc.ServiceRegistrar, srv JobServer)
Types ¶
type CreateJobReply ¶
type CreateJobReply struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CreateJobReply) Descriptor
deprecated
func (*CreateJobReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateJobReply.ProtoReflect.Descriptor instead.
func (*CreateJobReply) GetId ¶
func (x *CreateJobReply) GetId() uint32
func (*CreateJobReply) ProtoMessage ¶
func (*CreateJobReply) ProtoMessage()
func (*CreateJobReply) ProtoReflect ¶
func (x *CreateJobReply) ProtoReflect() protoreflect.Message
func (*CreateJobReply) Reset ¶
func (x *CreateJobReply) Reset()
func (*CreateJobReply) String ¶
func (x *CreateJobReply) String() string
func (*CreateJobReply) Validate ¶
func (m *CreateJobReply) Validate() error
Validate checks the field values on CreateJobReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateJobReply) ValidateAll ¶
func (m *CreateJobReply) ValidateAll() error
ValidateAll checks the field values on CreateJobReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateJobReplyMultiError, or nil if none found.
type CreateJobReplyMultiError ¶
type CreateJobReplyMultiError []error
CreateJobReplyMultiError is an error wrapping multiple validation errors returned by CreateJobReply.ValidateAll() if the designated constraints aren't met.
func (CreateJobReplyMultiError) AllErrors ¶
func (m CreateJobReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateJobReplyMultiError) Error ¶
func (m CreateJobReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateJobReplyValidationError ¶
type CreateJobReplyValidationError struct {
// contains filtered or unexported fields
}
CreateJobReplyValidationError is the validation error returned by CreateJobReply.Validate if the designated constraints aren't met.
func (CreateJobReplyValidationError) Cause ¶
func (e CreateJobReplyValidationError) Cause() error
Cause function returns cause value.
func (CreateJobReplyValidationError) Error ¶
func (e CreateJobReplyValidationError) Error() string
Error satisfies the builtin error interface
func (CreateJobReplyValidationError) ErrorName ¶
func (e CreateJobReplyValidationError) ErrorName() string
ErrorName returns error name.
func (CreateJobReplyValidationError) Field ¶
func (e CreateJobReplyValidationError) Field() string
Field function returns field value.
func (CreateJobReplyValidationError) Key ¶
func (e CreateJobReplyValidationError) Key() bool
Key function returns key value.
func (CreateJobReplyValidationError) Reason ¶
func (e CreateJobReplyValidationError) Reason() string
Reason function returns reason value.
type CreateJobRequest ¶
type CreateJobRequest struct { Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Weight *int32 `protobuf:"varint,3,opt,name=weight,proto3,oneof" json:"weight,omitempty"` Description *string `protobuf:"bytes,4,opt,name=description,proto3,oneof" json:"description,omitempty"` // contains filtered or unexported fields }
func (*CreateJobRequest) Descriptor
deprecated
func (*CreateJobRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateJobRequest.ProtoReflect.Descriptor instead.
func (*CreateJobRequest) GetDescription ¶
func (x *CreateJobRequest) GetDescription() string
func (*CreateJobRequest) GetKeyword ¶
func (x *CreateJobRequest) GetKeyword() string
func (*CreateJobRequest) GetName ¶
func (x *CreateJobRequest) GetName() string
func (*CreateJobRequest) GetWeight ¶
func (x *CreateJobRequest) GetWeight() int32
func (*CreateJobRequest) ProtoMessage ¶
func (*CreateJobRequest) ProtoMessage()
func (*CreateJobRequest) ProtoReflect ¶
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, the first error encountered is returned, or nil if there are no violations.
func (*CreateJobRequest) ValidateAll ¶
func (m *CreateJobRequest) ValidateAll() error
ValidateAll checks the field values on CreateJobRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateJobRequestMultiError, or nil if none found.
type CreateJobRequestMultiError ¶
type CreateJobRequestMultiError []error
CreateJobRequestMultiError is an error wrapping multiple validation errors returned by CreateJobRequest.ValidateAll() if the designated constraints aren't met.
func (CreateJobRequestMultiError) AllErrors ¶
func (m CreateJobRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateJobRequestMultiError) Error ¶
func (m CreateJobRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
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 ¶
func (e CreateJobRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateJobRequestValidationError) Error ¶
func (e CreateJobRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateJobRequestValidationError) ErrorName ¶
func (e CreateJobRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateJobRequestValidationError) Field ¶
func (e CreateJobRequestValidationError) Field() string
Field function returns field value.
func (CreateJobRequestValidationError) Key ¶
func (e CreateJobRequestValidationError) Key() bool
Key function returns key value.
func (CreateJobRequestValidationError) Reason ¶
func (e CreateJobRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteJobReply ¶
type DeleteJobReply struct { Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*DeleteJobReply) Descriptor
deprecated
func (*DeleteJobReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteJobReply.ProtoReflect.Descriptor instead.
func (*DeleteJobReply) GetTotal ¶
func (x *DeleteJobReply) GetTotal() uint32
func (*DeleteJobReply) ProtoMessage ¶
func (*DeleteJobReply) ProtoMessage()
func (*DeleteJobReply) ProtoReflect ¶
func (x *DeleteJobReply) ProtoReflect() protoreflect.Message
func (*DeleteJobReply) Reset ¶
func (x *DeleteJobReply) Reset()
func (*DeleteJobReply) String ¶
func (x *DeleteJobReply) String() string
func (*DeleteJobReply) Validate ¶
func (m *DeleteJobReply) Validate() error
Validate checks the field values on DeleteJobReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeleteJobReply) ValidateAll ¶
func (m *DeleteJobReply) ValidateAll() error
ValidateAll checks the field values on DeleteJobReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteJobReplyMultiError, or nil if none found.
type DeleteJobReplyMultiError ¶
type DeleteJobReplyMultiError []error
DeleteJobReplyMultiError is an error wrapping multiple validation errors returned by DeleteJobReply.ValidateAll() if the designated constraints aren't met.
func (DeleteJobReplyMultiError) AllErrors ¶
func (m DeleteJobReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteJobReplyMultiError) Error ¶
func (m DeleteJobReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteJobReplyValidationError ¶
type DeleteJobReplyValidationError struct {
// contains filtered or unexported fields
}
DeleteJobReplyValidationError is the validation error returned by DeleteJobReply.Validate if the designated constraints aren't met.
func (DeleteJobReplyValidationError) Cause ¶
func (e DeleteJobReplyValidationError) Cause() error
Cause function returns cause value.
func (DeleteJobReplyValidationError) Error ¶
func (e DeleteJobReplyValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteJobReplyValidationError) ErrorName ¶
func (e DeleteJobReplyValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteJobReplyValidationError) Field ¶
func (e DeleteJobReplyValidationError) Field() string
Field function returns field value.
func (DeleteJobReplyValidationError) Key ¶
func (e DeleteJobReplyValidationError) Key() bool
Key function returns key value.
func (DeleteJobReplyValidationError) Reason ¶
func (e DeleteJobReplyValidationError) Reason() string
Reason function returns reason value.
type DeleteJobRequest ¶
type DeleteJobRequest struct { Ids []uint32 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*DeleteJobRequest) Descriptor
deprecated
func (*DeleteJobRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteJobRequest.ProtoReflect.Descriptor instead.
func (*DeleteJobRequest) GetIds ¶
func (x *DeleteJobRequest) GetIds() []uint32
func (*DeleteJobRequest) ProtoMessage ¶
func (*DeleteJobRequest) ProtoMessage()
func (*DeleteJobRequest) ProtoReflect ¶
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, the first error encountered is returned, or nil if there are no violations.
func (*DeleteJobRequest) ValidateAll ¶
func (m *DeleteJobRequest) ValidateAll() error
ValidateAll checks the field values on DeleteJobRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteJobRequestMultiError, or nil if none found.
type DeleteJobRequestMultiError ¶
type DeleteJobRequestMultiError []error
DeleteJobRequestMultiError is an error wrapping multiple validation errors returned by DeleteJobRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteJobRequestMultiError) AllErrors ¶
func (m DeleteJobRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteJobRequestMultiError) Error ¶
func (m DeleteJobRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
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 ¶
func (e DeleteJobRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteJobRequestValidationError) Error ¶
func (e DeleteJobRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteJobRequestValidationError) ErrorName ¶
func (e DeleteJobRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteJobRequestValidationError) Field ¶
func (e DeleteJobRequestValidationError) Field() string
Field function returns field value.
func (DeleteJobRequestValidationError) Key ¶
func (e DeleteJobRequestValidationError) Key() bool
Key function returns key value.
func (DeleteJobRequestValidationError) Reason ¶
func (e DeleteJobRequestValidationError) Reason() string
Reason function returns reason value.
type GetJobReply ¶
type GetJobReply struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Keyword string `protobuf:"bytes,2,opt,name=keyword,proto3" json:"keyword,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Weight *int32 `protobuf:"varint,4,opt,name=weight,proto3,oneof" json:"weight,omitempty"` Description *string `protobuf:"bytes,5,opt,name=description,proto3,oneof" json:"description,omitempty"` CreatedAt uint32 `protobuf:"varint,6,opt,name=createdAt,proto3" json:"createdAt,omitempty"` UpdatedAt uint32 `protobuf:"varint,7,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // contains filtered or unexported fields }
func (*GetJobReply) Descriptor
deprecated
func (*GetJobReply) Descriptor() ([]byte, []int)
Deprecated: Use GetJobReply.ProtoReflect.Descriptor instead.
func (*GetJobReply) GetCreatedAt ¶
func (x *GetJobReply) GetCreatedAt() uint32
func (*GetJobReply) GetDescription ¶
func (x *GetJobReply) GetDescription() string
func (*GetJobReply) GetId ¶
func (x *GetJobReply) GetId() uint32
func (*GetJobReply) GetKeyword ¶
func (x *GetJobReply) GetKeyword() string
func (*GetJobReply) GetName ¶
func (x *GetJobReply) GetName() string
func (*GetJobReply) GetUpdatedAt ¶
func (x *GetJobReply) GetUpdatedAt() uint32
func (*GetJobReply) GetWeight ¶
func (x *GetJobReply) GetWeight() int32
func (*GetJobReply) ProtoMessage ¶
func (*GetJobReply) ProtoMessage()
func (*GetJobReply) ProtoReflect ¶
func (x *GetJobReply) ProtoReflect() protoreflect.Message
func (*GetJobReply) Reset ¶
func (x *GetJobReply) Reset()
func (*GetJobReply) String ¶
func (x *GetJobReply) String() string
func (*GetJobReply) Validate ¶
func (m *GetJobReply) Validate() error
Validate checks the field values on GetJobReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetJobReply) ValidateAll ¶
func (m *GetJobReply) ValidateAll() error
ValidateAll checks the field values on GetJobReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetJobReplyMultiError, or nil if none found.
type GetJobReplyMultiError ¶
type GetJobReplyMultiError []error
GetJobReplyMultiError is an error wrapping multiple validation errors returned by GetJobReply.ValidateAll() if the designated constraints aren't met.
func (GetJobReplyMultiError) AllErrors ¶
func (m GetJobReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetJobReplyMultiError) Error ¶
func (m GetJobReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetJobReplyValidationError ¶
type GetJobReplyValidationError struct {
// contains filtered or unexported fields
}
GetJobReplyValidationError is the validation error returned by GetJobReply.Validate if the designated constraints aren't met.
func (GetJobReplyValidationError) Cause ¶
func (e GetJobReplyValidationError) Cause() error
Cause function returns cause value.
func (GetJobReplyValidationError) Error ¶
func (e GetJobReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetJobReplyValidationError) ErrorName ¶
func (e GetJobReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetJobReplyValidationError) Field ¶
func (e GetJobReplyValidationError) Field() string
Field function returns field value.
func (GetJobReplyValidationError) Key ¶
func (e GetJobReplyValidationError) Key() bool
Key function returns key value.
func (GetJobReplyValidationError) Reason ¶
func (e GetJobReplyValidationError) Reason() string
Reason function returns reason value.
type GetJobRequest ¶
type GetJobRequest struct { Id *uint32 `protobuf:"varint,1,opt,name=id,proto3,oneof" json:"id,omitempty"` Keyword *string `protobuf:"bytes,2,opt,name=keyword,proto3,oneof" json:"keyword,omitempty"` // contains filtered or unexported fields }
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) GetKeyword ¶
func (x *GetJobRequest) GetKeyword() string
func (*GetJobRequest) ProtoMessage ¶
func (*GetJobRequest) ProtoMessage()
func (*GetJobRequest) ProtoReflect ¶
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, the first error encountered is returned, or nil if there are no violations.
func (*GetJobRequest) ValidateAll ¶
func (m *GetJobRequest) ValidateAll() error
ValidateAll checks the field values on GetJobRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetJobRequestMultiError, or nil if none found.
type GetJobRequestMultiError ¶
type GetJobRequestMultiError []error
GetJobRequestMultiError is an error wrapping multiple validation errors returned by GetJobRequest.ValidateAll() if the designated constraints aren't met.
func (GetJobRequestMultiError) AllErrors ¶
func (m GetJobRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetJobRequestMultiError) Error ¶
func (m GetJobRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
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 ¶
func (e GetJobRequestValidationError) Cause() error
Cause function returns cause value.
func (GetJobRequestValidationError) Error ¶
func (e GetJobRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetJobRequestValidationError) ErrorName ¶
func (e GetJobRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetJobRequestValidationError) Field ¶
func (e GetJobRequestValidationError) Field() string
Field function returns field value.
func (GetJobRequestValidationError) Key ¶
func (e GetJobRequestValidationError) Key() bool
Key function returns key value.
func (GetJobRequestValidationError) Reason ¶
func (e GetJobRequestValidationError) Reason() string
Reason function returns reason value.
type JobClient ¶
type JobClient interface { // ListJob 获取职位信息列表 ListJob(ctx context.Context, in *ListJobRequest, opts ...grpc.CallOption) (*ListJobReply, error) // CreateJob 创建职位信息 CreateJob(ctx context.Context, in *CreateJobRequest, opts ...grpc.CallOption) (*CreateJobReply, error) // UpdateJob 更新职位信息 UpdateJob(ctx context.Context, in *UpdateJobRequest, opts ...grpc.CallOption) (*UpdateJobReply, error) // DeleteJob 删除职位信息 DeleteJob(ctx context.Context, in *DeleteJobRequest, opts ...grpc.CallOption) (*DeleteJobReply, error) // GetJob 获取指定的职位信息 GetJob(ctx context.Context, in *GetJobRequest, opts ...grpc.CallOption) (*GetJobReply, error) }
JobClient is the client API for Job 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 NewJobClient ¶
func NewJobClient(cc grpc.ClientConnInterface) JobClient
type JobHTTPClient ¶
type JobHTTPClient interface { CreateJob(ctx context.Context, req *CreateJobRequest, opts ...http.CallOption) (rsp *CreateJobReply, err error) DeleteJob(ctx context.Context, req *DeleteJobRequest, opts ...http.CallOption) (rsp *DeleteJobReply, err error) GetJob(ctx context.Context, req *GetJobRequest, opts ...http.CallOption) (rsp *GetJobReply, err error) ListJob(ctx context.Context, req *ListJobRequest, opts ...http.CallOption) (rsp *ListJobReply, err error) UpdateJob(ctx context.Context, req *UpdateJobRequest, opts ...http.CallOption) (rsp *UpdateJobReply, err error) }
func NewJobHTTPClient ¶
func NewJobHTTPClient(client *http.Client) JobHTTPClient
type JobHTTPClientImpl ¶
type JobHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*JobHTTPClientImpl) CreateJob ¶
func (c *JobHTTPClientImpl) CreateJob(ctx context.Context, in *CreateJobRequest, opts ...http.CallOption) (*CreateJobReply, error)
func (*JobHTTPClientImpl) DeleteJob ¶
func (c *JobHTTPClientImpl) DeleteJob(ctx context.Context, in *DeleteJobRequest, opts ...http.CallOption) (*DeleteJobReply, error)
func (*JobHTTPClientImpl) GetJob ¶
func (c *JobHTTPClientImpl) GetJob(ctx context.Context, in *GetJobRequest, opts ...http.CallOption) (*GetJobReply, error)
func (*JobHTTPClientImpl) ListJob ¶
func (c *JobHTTPClientImpl) ListJob(ctx context.Context, in *ListJobRequest, opts ...http.CallOption) (*ListJobReply, error)
func (*JobHTTPClientImpl) UpdateJob ¶
func (c *JobHTTPClientImpl) UpdateJob(ctx context.Context, in *UpdateJobRequest, opts ...http.CallOption) (*UpdateJobReply, error)
type JobHTTPServer ¶
type JobHTTPServer interface { // CreateJob CreateJob 创建职位信息 CreateJob(context.Context, *CreateJobRequest) (*CreateJobReply, error) // DeleteJob DeleteJob 删除职位信息 DeleteJob(context.Context, *DeleteJobRequest) (*DeleteJobReply, error) // GetJob GetJob 获取指定的职位信息 GetJob(context.Context, *GetJobRequest) (*GetJobReply, error) // ListJob ListJob 获取职位信息列表 ListJob(context.Context, *ListJobRequest) (*ListJobReply, error) // UpdateJob UpdateJob 更新职位信息 UpdateJob(context.Context, *UpdateJobRequest) (*UpdateJobReply, error) }
type JobServer ¶
type JobServer interface { // ListJob 获取职位信息列表 ListJob(context.Context, *ListJobRequest) (*ListJobReply, error) // CreateJob 创建职位信息 CreateJob(context.Context, *CreateJobRequest) (*CreateJobReply, error) // UpdateJob 更新职位信息 UpdateJob(context.Context, *UpdateJobRequest) (*UpdateJobReply, error) // DeleteJob 删除职位信息 DeleteJob(context.Context, *DeleteJobRequest) (*DeleteJobReply, error) // GetJob 获取指定的职位信息 GetJob(context.Context, *GetJobRequest) (*GetJobReply, error) // contains filtered or unexported methods }
JobServer is the server API for Job service. All implementations must embed UnimplementedJobServer for forward compatibility
type ListJobReply ¶
type ListJobReply struct { Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` List []*ListJobReply_Job `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*ListJobReply) Descriptor
deprecated
func (*ListJobReply) Descriptor() ([]byte, []int)
Deprecated: Use ListJobReply.ProtoReflect.Descriptor instead.
func (*ListJobReply) GetList ¶
func (x *ListJobReply) GetList() []*ListJobReply_Job
func (*ListJobReply) GetTotal ¶
func (x *ListJobReply) GetTotal() uint32
func (*ListJobReply) ProtoMessage ¶
func (*ListJobReply) ProtoMessage()
func (*ListJobReply) ProtoReflect ¶
func (x *ListJobReply) ProtoReflect() protoreflect.Message
func (*ListJobReply) Reset ¶
func (x *ListJobReply) Reset()
func (*ListJobReply) String ¶
func (x *ListJobReply) String() string
func (*ListJobReply) Validate ¶
func (m *ListJobReply) Validate() error
Validate checks the field values on ListJobReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListJobReply) ValidateAll ¶
func (m *ListJobReply) ValidateAll() error
ValidateAll checks the field values on ListJobReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListJobReplyMultiError, or nil if none found.
type ListJobReplyMultiError ¶
type ListJobReplyMultiError []error
ListJobReplyMultiError is an error wrapping multiple validation errors returned by ListJobReply.ValidateAll() if the designated constraints aren't met.
func (ListJobReplyMultiError) AllErrors ¶
func (m ListJobReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListJobReplyMultiError) Error ¶
func (m ListJobReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListJobReplyValidationError ¶
type ListJobReplyValidationError struct {
// contains filtered or unexported fields
}
ListJobReplyValidationError is the validation error returned by ListJobReply.Validate if the designated constraints aren't met.
func (ListJobReplyValidationError) Cause ¶
func (e ListJobReplyValidationError) Cause() error
Cause function returns cause value.
func (ListJobReplyValidationError) Error ¶
func (e ListJobReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ListJobReplyValidationError) ErrorName ¶
func (e ListJobReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ListJobReplyValidationError) Field ¶
func (e ListJobReplyValidationError) Field() string
Field function returns field value.
func (ListJobReplyValidationError) Key ¶
func (e ListJobReplyValidationError) Key() bool
Key function returns key value.
func (ListJobReplyValidationError) Reason ¶
func (e ListJobReplyValidationError) Reason() string
Reason function returns reason value.
type ListJobReply_Job ¶
type ListJobReply_Job struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Keyword string `protobuf:"bytes,2,opt,name=keyword,proto3" json:"keyword,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Weight *int32 `protobuf:"varint,4,opt,name=weight,proto3,oneof" json:"weight,omitempty"` Description *string `protobuf:"bytes,5,opt,name=description,proto3,oneof" json:"description,omitempty"` CreatedAt uint32 `protobuf:"varint,6,opt,name=createdAt,proto3" json:"createdAt,omitempty"` UpdatedAt uint32 `protobuf:"varint,7,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // contains filtered or unexported fields }
func (*ListJobReply_Job) Descriptor
deprecated
func (*ListJobReply_Job) Descriptor() ([]byte, []int)
Deprecated: Use ListJobReply_Job.ProtoReflect.Descriptor instead.
func (*ListJobReply_Job) GetCreatedAt ¶
func (x *ListJobReply_Job) GetCreatedAt() uint32
func (*ListJobReply_Job) GetDescription ¶
func (x *ListJobReply_Job) GetDescription() string
func (*ListJobReply_Job) GetId ¶
func (x *ListJobReply_Job) GetId() uint32
func (*ListJobReply_Job) GetKeyword ¶
func (x *ListJobReply_Job) GetKeyword() string
func (*ListJobReply_Job) GetName ¶
func (x *ListJobReply_Job) GetName() string
func (*ListJobReply_Job) GetUpdatedAt ¶
func (x *ListJobReply_Job) GetUpdatedAt() uint32
func (*ListJobReply_Job) GetWeight ¶
func (x *ListJobReply_Job) GetWeight() int32
func (*ListJobReply_Job) ProtoMessage ¶
func (*ListJobReply_Job) ProtoMessage()
func (*ListJobReply_Job) ProtoReflect ¶
func (x *ListJobReply_Job) ProtoReflect() protoreflect.Message
func (*ListJobReply_Job) Reset ¶
func (x *ListJobReply_Job) Reset()
func (*ListJobReply_Job) String ¶
func (x *ListJobReply_Job) String() string
func (*ListJobReply_Job) Validate ¶
func (m *ListJobReply_Job) Validate() error
Validate checks the field values on ListJobReply_Job with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListJobReply_Job) ValidateAll ¶
func (m *ListJobReply_Job) ValidateAll() error
ValidateAll checks the field values on ListJobReply_Job with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListJobReply_JobMultiError, or nil if none found.
type ListJobReply_JobMultiError ¶
type ListJobReply_JobMultiError []error
ListJobReply_JobMultiError is an error wrapping multiple validation errors returned by ListJobReply_Job.ValidateAll() if the designated constraints aren't met.
func (ListJobReply_JobMultiError) AllErrors ¶
func (m ListJobReply_JobMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListJobReply_JobMultiError) Error ¶
func (m ListJobReply_JobMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListJobReply_JobValidationError ¶
type ListJobReply_JobValidationError struct {
// contains filtered or unexported fields
}
ListJobReply_JobValidationError is the validation error returned by ListJobReply_Job.Validate if the designated constraints aren't met.
func (ListJobReply_JobValidationError) Cause ¶
func (e ListJobReply_JobValidationError) Cause() error
Cause function returns cause value.
func (ListJobReply_JobValidationError) Error ¶
func (e ListJobReply_JobValidationError) Error() string
Error satisfies the builtin error interface
func (ListJobReply_JobValidationError) ErrorName ¶
func (e ListJobReply_JobValidationError) ErrorName() string
ErrorName returns error name.
func (ListJobReply_JobValidationError) Field ¶
func (e ListJobReply_JobValidationError) Field() string
Field function returns field value.
func (ListJobReply_JobValidationError) Key ¶
func (e ListJobReply_JobValidationError) Key() bool
Key function returns key value.
func (ListJobReply_JobValidationError) Reason ¶
func (e ListJobReply_JobValidationError) Reason() string
Reason function returns reason value.
type ListJobRequest ¶
type ListJobRequest struct { Page uint32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize uint32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` Order *string `protobuf:"bytes,3,opt,name=order,proto3,oneof" json:"order,omitempty"` OrderBy *string `protobuf:"bytes,4,opt,name=orderBy,proto3,oneof" json:"orderBy,omitempty"` Keyword *string `protobuf:"bytes,5,opt,name=keyword,proto3,oneof" json:"keyword,omitempty"` Name *string `protobuf:"bytes,6,opt,name=name,proto3,oneof" json:"name,omitempty"` // contains filtered or unexported fields }
func (*ListJobRequest) Descriptor
deprecated
func (*ListJobRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListJobRequest.ProtoReflect.Descriptor instead.
func (*ListJobRequest) GetKeyword ¶
func (x *ListJobRequest) GetKeyword() string
func (*ListJobRequest) GetName ¶
func (x *ListJobRequest) GetName() string
func (*ListJobRequest) GetOrder ¶
func (x *ListJobRequest) GetOrder() string
func (*ListJobRequest) GetOrderBy ¶
func (x *ListJobRequest) GetOrderBy() string
func (*ListJobRequest) GetPage ¶
func (x *ListJobRequest) GetPage() uint32
func (*ListJobRequest) GetPageSize ¶
func (x *ListJobRequest) GetPageSize() uint32
func (*ListJobRequest) ProtoMessage ¶
func (*ListJobRequest) ProtoMessage()
func (*ListJobRequest) ProtoReflect ¶
func (x *ListJobRequest) ProtoReflect() protoreflect.Message
func (*ListJobRequest) Reset ¶
func (x *ListJobRequest) Reset()
func (*ListJobRequest) String ¶
func (x *ListJobRequest) String() string
func (*ListJobRequest) Validate ¶
func (m *ListJobRequest) Validate() error
Validate checks the field values on ListJobRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListJobRequest) ValidateAll ¶
func (m *ListJobRequest) ValidateAll() error
ValidateAll checks the field values on ListJobRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListJobRequestMultiError, or nil if none found.
type ListJobRequestMultiError ¶
type ListJobRequestMultiError []error
ListJobRequestMultiError is an error wrapping multiple validation errors returned by ListJobRequest.ValidateAll() if the designated constraints aren't met.
func (ListJobRequestMultiError) AllErrors ¶
func (m ListJobRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListJobRequestMultiError) Error ¶
func (m ListJobRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListJobRequestValidationError ¶
type ListJobRequestValidationError struct {
// contains filtered or unexported fields
}
ListJobRequestValidationError is the validation error returned by ListJobRequest.Validate if the designated constraints aren't met.
func (ListJobRequestValidationError) Cause ¶
func (e ListJobRequestValidationError) Cause() error
Cause function returns cause value.
func (ListJobRequestValidationError) Error ¶
func (e ListJobRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListJobRequestValidationError) ErrorName ¶
func (e ListJobRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListJobRequestValidationError) Field ¶
func (e ListJobRequestValidationError) Field() string
Field function returns field value.
func (ListJobRequestValidationError) Key ¶
func (e ListJobRequestValidationError) Key() bool
Key function returns key value.
func (ListJobRequestValidationError) Reason ¶
func (e ListJobRequestValidationError) Reason() string
Reason function returns reason value.
type UnimplementedJobServer ¶
type UnimplementedJobServer struct { }
UnimplementedJobServer must be embedded to have forward compatible implementations.
func (UnimplementedJobServer) CreateJob ¶
func (UnimplementedJobServer) CreateJob(context.Context, *CreateJobRequest) (*CreateJobReply, error)
func (UnimplementedJobServer) DeleteJob ¶
func (UnimplementedJobServer) DeleteJob(context.Context, *DeleteJobRequest) (*DeleteJobReply, error)
func (UnimplementedJobServer) GetJob ¶
func (UnimplementedJobServer) GetJob(context.Context, *GetJobRequest) (*GetJobReply, error)
func (UnimplementedJobServer) ListJob ¶
func (UnimplementedJobServer) ListJob(context.Context, *ListJobRequest) (*ListJobReply, error)
func (UnimplementedJobServer) UpdateJob ¶
func (UnimplementedJobServer) UpdateJob(context.Context, *UpdateJobRequest) (*UpdateJobReply, error)
type UnsafeJobServer ¶
type UnsafeJobServer interface {
// contains filtered or unexported methods
}
UnsafeJobServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to JobServer will result in compilation errors.
type UpdateJobReply ¶
type UpdateJobReply struct {
// contains filtered or unexported fields
}
func (*UpdateJobReply) Descriptor
deprecated
func (*UpdateJobReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateJobReply.ProtoReflect.Descriptor instead.
func (*UpdateJobReply) ProtoMessage ¶
func (*UpdateJobReply) ProtoMessage()
func (*UpdateJobReply) ProtoReflect ¶
func (x *UpdateJobReply) ProtoReflect() protoreflect.Message
func (*UpdateJobReply) Reset ¶
func (x *UpdateJobReply) Reset()
func (*UpdateJobReply) String ¶
func (x *UpdateJobReply) String() string
func (*UpdateJobReply) Validate ¶
func (m *UpdateJobReply) Validate() error
Validate checks the field values on UpdateJobReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateJobReply) ValidateAll ¶
func (m *UpdateJobReply) ValidateAll() error
ValidateAll checks the field values on UpdateJobReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateJobReplyMultiError, or nil if none found.
type UpdateJobReplyMultiError ¶
type UpdateJobReplyMultiError []error
UpdateJobReplyMultiError is an error wrapping multiple validation errors returned by UpdateJobReply.ValidateAll() if the designated constraints aren't met.
func (UpdateJobReplyMultiError) AllErrors ¶
func (m UpdateJobReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateJobReplyMultiError) Error ¶
func (m UpdateJobReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateJobReplyValidationError ¶
type UpdateJobReplyValidationError struct {
// contains filtered or unexported fields
}
UpdateJobReplyValidationError is the validation error returned by UpdateJobReply.Validate if the designated constraints aren't met.
func (UpdateJobReplyValidationError) Cause ¶
func (e UpdateJobReplyValidationError) Cause() error
Cause function returns cause value.
func (UpdateJobReplyValidationError) Error ¶
func (e UpdateJobReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateJobReplyValidationError) ErrorName ¶
func (e UpdateJobReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateJobReplyValidationError) Field ¶
func (e UpdateJobReplyValidationError) Field() string
Field function returns field value.
func (UpdateJobReplyValidationError) Key ¶
func (e UpdateJobReplyValidationError) Key() bool
Key function returns key value.
func (UpdateJobReplyValidationError) Reason ¶
func (e UpdateJobReplyValidationError) Reason() string
Reason function returns reason value.
type UpdateJobRequest ¶
type UpdateJobRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Keyword string `protobuf:"bytes,2,opt,name=keyword,proto3" json:"keyword,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Weight *int32 `protobuf:"varint,4,opt,name=weight,proto3,oneof" json:"weight,omitempty"` Description *string `protobuf:"bytes,5,opt,name=description,proto3,oneof" json:"description,omitempty"` // contains filtered or unexported fields }
func (*UpdateJobRequest) Descriptor
deprecated
func (*UpdateJobRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateJobRequest.ProtoReflect.Descriptor instead.
func (*UpdateJobRequest) GetDescription ¶
func (x *UpdateJobRequest) GetDescription() string
func (*UpdateJobRequest) GetId ¶
func (x *UpdateJobRequest) GetId() uint32
func (*UpdateJobRequest) GetKeyword ¶
func (x *UpdateJobRequest) GetKeyword() string
func (*UpdateJobRequest) GetName ¶
func (x *UpdateJobRequest) GetName() string
func (*UpdateJobRequest) GetWeight ¶
func (x *UpdateJobRequest) GetWeight() int32
func (*UpdateJobRequest) ProtoMessage ¶
func (*UpdateJobRequest) ProtoMessage()
func (*UpdateJobRequest) ProtoReflect ¶
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, the first error encountered is returned, or nil if there are no violations.
func (*UpdateJobRequest) ValidateAll ¶
func (m *UpdateJobRequest) ValidateAll() error
ValidateAll checks the field values on UpdateJobRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateJobRequestMultiError, or nil if none found.
type UpdateJobRequestMultiError ¶
type UpdateJobRequestMultiError []error
UpdateJobRequestMultiError is an error wrapping multiple validation errors returned by UpdateJobRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateJobRequestMultiError) AllErrors ¶
func (m UpdateJobRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateJobRequestMultiError) Error ¶
func (m UpdateJobRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
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 ¶
func (e UpdateJobRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateJobRequestValidationError) Error ¶
func (e UpdateJobRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateJobRequestValidationError) ErrorName ¶
func (e UpdateJobRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateJobRequestValidationError) Field ¶
func (e UpdateJobRequestValidationError) Field() string
Field function returns field value.
func (UpdateJobRequestValidationError) Key ¶
func (e UpdateJobRequestValidationError) Key() bool
Key function returns key value.
func (UpdateJobRequestValidationError) Reason ¶
func (e UpdateJobRequestValidationError) Reason() string
Reason function returns reason value.