Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterServiceHTTPServer(s *http.Server, srv ServiceHTTPServer)
- func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
- type AddJobReply
- func (*AddJobReply) Descriptor() ([]byte, []int)deprecated
- func (x *AddJobReply) GetId() uint32
- func (*AddJobReply) ProtoMessage()
- func (x *AddJobReply) ProtoReflect() protoreflect.Message
- func (x *AddJobReply) Reset()
- func (x *AddJobReply) String() string
- func (m *AddJobReply) Validate() error
- func (m *AddJobReply) ValidateAll() error
- type AddJobReplyMultiError
- type AddJobReplyValidationError
- func (e AddJobReplyValidationError) Cause() error
- func (e AddJobReplyValidationError) Error() string
- func (e AddJobReplyValidationError) ErrorName() string
- func (e AddJobReplyValidationError) Field() string
- func (e AddJobReplyValidationError) Key() bool
- func (e AddJobReplyValidationError) Reason() string
- type AddJobRequest
- func (*AddJobRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddJobRequest) GetDescription() string
- func (x *AddJobRequest) GetKeyword() string
- func (x *AddJobRequest) GetName() string
- func (x *AddJobRequest) GetWeight() uint32
- func (*AddJobRequest) ProtoMessage()
- func (x *AddJobRequest) ProtoReflect() protoreflect.Message
- func (x *AddJobRequest) Reset()
- func (x *AddJobRequest) String() string
- func (m *AddJobRequest) Validate() error
- func (m *AddJobRequest) ValidateAll() error
- type AddJobRequestMultiError
- type AddJobRequestValidationError
- func (e AddJobRequestValidationError) Cause() error
- func (e AddJobRequestValidationError) Error() string
- func (e AddJobRequestValidationError) ErrorName() string
- func (e AddJobRequestValidationError) Field() string
- func (e AddJobRequestValidationError) Key() bool
- func (e AddJobRequestValidationError) Reason() string
- type DeleteJobRequest
- func (*DeleteJobRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteJobRequest) GetId() 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 GetJobRequest
- func (*GetJobRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetJobRequest) GetId() uint32
- 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 Job
- func (*Job) Descriptor() ([]byte, []int)deprecated
- func (x *Job) GetCreatedAt() uint32
- func (x *Job) GetDescription() string
- func (x *Job) GetId() uint32
- func (x *Job) GetKeyword() string
- func (x *Job) GetName() string
- func (x *Job) GetUpdatedAt() uint32
- func (x *Job) GetWeight() uint32
- func (*Job) ProtoMessage()
- func (x *Job) ProtoReflect() protoreflect.Message
- func (x *Job) Reset()
- func (x *Job) String() string
- func (m *Job) Validate() error
- func (m *Job) ValidateAll() error
- type JobMultiError
- type JobValidationError
- type PageJobReply
- func (*PageJobReply) Descriptor() ([]byte, []int)deprecated
- func (x *PageJobReply) GetList() []*Job
- func (x *PageJobReply) GetTotal() uint32
- func (*PageJobReply) ProtoMessage()
- func (x *PageJobReply) ProtoReflect() protoreflect.Message
- func (x *PageJobReply) Reset()
- func (x *PageJobReply) String() string
- func (m *PageJobReply) Validate() error
- func (m *PageJobReply) ValidateAll() error
- type PageJobReplyMultiError
- type PageJobReplyValidationError
- func (e PageJobReplyValidationError) Cause() error
- func (e PageJobReplyValidationError) Error() string
- func (e PageJobReplyValidationError) ErrorName() string
- func (e PageJobReplyValidationError) Field() string
- func (e PageJobReplyValidationError) Key() bool
- func (e PageJobReplyValidationError) Reason() string
- type PageJobRequest
- func (*PageJobRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PageJobRequest) GetKeyword() string
- func (x *PageJobRequest) GetName() string
- func (x *PageJobRequest) GetPage() uint32
- func (x *PageJobRequest) GetPageSize() uint32
- func (*PageJobRequest) ProtoMessage()
- func (x *PageJobRequest) ProtoReflect() protoreflect.Message
- func (x *PageJobRequest) Reset()
- func (x *PageJobRequest) String() string
- func (m *PageJobRequest) Validate() error
- func (m *PageJobRequest) ValidateAll() error
- type PageJobRequestMultiError
- type PageJobRequestValidationError
- func (e PageJobRequestValidationError) Cause() error
- func (e PageJobRequestValidationError) Error() string
- func (e PageJobRequestValidationError) ErrorName() string
- func (e PageJobRequestValidationError) Field() string
- func (e PageJobRequestValidationError) Key() bool
- func (e PageJobRequestValidationError) Reason() string
- type ServiceClient
- type ServiceHTTPClient
- type ServiceHTTPClientImpl
- func (c *ServiceHTTPClientImpl) AddJob(ctx context.Context, in *AddJobRequest, opts ...http.CallOption) (*AddJobReply, error)
- func (c *ServiceHTTPClientImpl) DeleteJob(ctx context.Context, in *DeleteJobRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *ServiceHTTPClientImpl) PageJob(ctx context.Context, in *PageJobRequest, opts ...http.CallOption) (*PageJobReply, error)
- func (c *ServiceHTTPClientImpl) UpdateJob(ctx context.Context, in *UpdateJobRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- type ServiceHTTPServer
- type ServiceServer
- type UnimplementedServiceServer
- func (UnimplementedServiceServer) AddJob(context.Context, *AddJobRequest) (*AddJobReply, error)
- func (UnimplementedServiceServer) DeleteJob(context.Context, *DeleteJobRequest) (*emptypb.Empty, error)
- func (UnimplementedServiceServer) PageJob(context.Context, *PageJobRequest) (*PageJobReply, error)
- func (UnimplementedServiceServer) UpdateJob(context.Context, *UpdateJobRequest) (*emptypb.Empty, error)
- type UnsafeServiceServer
- type UpdateJobRequest
- func (*UpdateJobRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateJobRequest) GetDescription() string
- func (x *UpdateJobRequest) GetId() uint32
- func (x *UpdateJobRequest) GetName() string
- func (x *UpdateJobRequest) GetWeight() uint32
- 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 ( Service_PageJob_FullMethodName = "/manager_job.Service/PageJob" Service_AddJob_FullMethodName = "/manager_job.Service/AddJob" Service_UpdateJob_FullMethodName = "/manager_job.Service/UpdateJob" Service_DeleteJob_FullMethodName = "/manager_job.Service/DeleteJob" )
const OperationServiceAddJob = "/manager_job.Service/AddJob"
const OperationServiceDeleteJob = "/manager_job.Service/DeleteJob"
const OperationServicePageJob = "/manager_job.Service/PageJob"
const OperationServiceUpdateJob = "/manager_job.Service/UpdateJob"
Variables ¶
var File_manager_job_proto protoreflect.FileDescriptor
var File_manager_job_service_proto protoreflect.FileDescriptor
var Service_ServiceDesc = grpc.ServiceDesc{ ServiceName: "manager_job.Service", HandlerType: (*ServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "PageJob", Handler: _Service_PageJob_Handler, }, { MethodName: "AddJob", Handler: _Service_AddJob_Handler, }, { MethodName: "UpdateJob", Handler: _Service_UpdateJob_Handler, }, { MethodName: "DeleteJob", Handler: _Service_DeleteJob_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "manager_job_service.proto", }
Service_ServiceDesc is the grpc.ServiceDesc for Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServiceHTTPServer ¶
func RegisterServiceHTTPServer(s *http.Server, srv ServiceHTTPServer)
func RegisterServiceServer ¶
func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
Types ¶
type AddJobReply ¶
type AddJobReply struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*AddJobReply) Descriptor
deprecated
func (*AddJobReply) Descriptor() ([]byte, []int)
Deprecated: Use AddJobReply.ProtoReflect.Descriptor instead.
func (*AddJobReply) GetId ¶
func (x *AddJobReply) GetId() uint32
func (*AddJobReply) ProtoMessage ¶
func (*AddJobReply) ProtoMessage()
func (*AddJobReply) ProtoReflect ¶
func (x *AddJobReply) ProtoReflect() protoreflect.Message
func (*AddJobReply) Reset ¶
func (x *AddJobReply) Reset()
func (*AddJobReply) String ¶
func (x *AddJobReply) String() string
func (*AddJobReply) Validate ¶
func (m *AddJobReply) Validate() error
Validate checks the field values on AddJobReply 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 (*AddJobReply) ValidateAll ¶
func (m *AddJobReply) ValidateAll() error
ValidateAll checks the field values on AddJobReply 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 AddJobReplyMultiError, or nil if none found.
type AddJobReplyMultiError ¶
type AddJobReplyMultiError []error
AddJobReplyMultiError is an error wrapping multiple validation errors returned by AddJobReply.ValidateAll() if the designated constraints aren't met.
func (AddJobReplyMultiError) AllErrors ¶
func (m AddJobReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddJobReplyMultiError) Error ¶
func (m AddJobReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddJobReplyValidationError ¶
type AddJobReplyValidationError struct {
// contains filtered or unexported fields
}
AddJobReplyValidationError is the validation error returned by AddJobReply.Validate if the designated constraints aren't met.
func (AddJobReplyValidationError) Cause ¶
func (e AddJobReplyValidationError) Cause() error
Cause function returns cause value.
func (AddJobReplyValidationError) Error ¶
func (e AddJobReplyValidationError) Error() string
Error satisfies the builtin error interface
func (AddJobReplyValidationError) ErrorName ¶
func (e AddJobReplyValidationError) ErrorName() string
ErrorName returns error name.
func (AddJobReplyValidationError) Field ¶
func (e AddJobReplyValidationError) Field() string
Field function returns field value.
func (AddJobReplyValidationError) Key ¶
func (e AddJobReplyValidationError) Key() bool
Key function returns key value.
func (AddJobReplyValidationError) Reason ¶
func (e AddJobReplyValidationError) Reason() string
Reason function returns reason value.
type AddJobRequest ¶
type AddJobRequest 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"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Weight *uint32 `protobuf:"varint,4,opt,name=weight,proto3,oneof" json:"weight,omitempty"` // contains filtered or unexported fields }
func (*AddJobRequest) Descriptor
deprecated
func (*AddJobRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddJobRequest.ProtoReflect.Descriptor instead.
func (*AddJobRequest) GetDescription ¶
func (x *AddJobRequest) GetDescription() string
func (*AddJobRequest) GetKeyword ¶
func (x *AddJobRequest) GetKeyword() string
func (*AddJobRequest) GetName ¶
func (x *AddJobRequest) GetName() string
func (*AddJobRequest) GetWeight ¶
func (x *AddJobRequest) GetWeight() uint32
func (*AddJobRequest) ProtoMessage ¶
func (*AddJobRequest) ProtoMessage()
func (*AddJobRequest) ProtoReflect ¶
func (x *AddJobRequest) ProtoReflect() protoreflect.Message
func (*AddJobRequest) Reset ¶
func (x *AddJobRequest) Reset()
func (*AddJobRequest) String ¶
func (x *AddJobRequest) String() string
func (*AddJobRequest) Validate ¶
func (m *AddJobRequest) Validate() error
Validate checks the field values on AddJobRequest 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 (*AddJobRequest) ValidateAll ¶
func (m *AddJobRequest) ValidateAll() error
ValidateAll checks the field values on AddJobRequest 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 AddJobRequestMultiError, or nil if none found.
type AddJobRequestMultiError ¶
type AddJobRequestMultiError []error
AddJobRequestMultiError is an error wrapping multiple validation errors returned by AddJobRequest.ValidateAll() if the designated constraints aren't met.
func (AddJobRequestMultiError) AllErrors ¶
func (m AddJobRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddJobRequestMultiError) Error ¶
func (m AddJobRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddJobRequestValidationError ¶
type AddJobRequestValidationError struct {
// contains filtered or unexported fields
}
AddJobRequestValidationError is the validation error returned by AddJobRequest.Validate if the designated constraints aren't met.
func (AddJobRequestValidationError) Cause ¶
func (e AddJobRequestValidationError) Cause() error
Cause function returns cause value.
func (AddJobRequestValidationError) Error ¶
func (e AddJobRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AddJobRequestValidationError) ErrorName ¶
func (e AddJobRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AddJobRequestValidationError) Field ¶
func (e AddJobRequestValidationError) Field() string
Field function returns field value.
func (AddJobRequestValidationError) Key ¶
func (e AddJobRequestValidationError) Key() bool
Key function returns key value.
func (AddJobRequestValidationError) Reason ¶
func (e AddJobRequestValidationError) Reason() string
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 }
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 ¶
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 GetJobRequest ¶
type GetJobRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,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) 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 Job ¶
type 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"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` Weight *uint32 `protobuf:"varint,5,opt,name=weight,proto3,oneof" json:"weight,omitempty"` CreatedAt *uint32 `protobuf:"varint,6,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` UpdatedAt *uint32 `protobuf:"varint,7,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*Job) Descriptor
deprecated
func (*Job) GetCreatedAt ¶
func (*Job) GetDescription ¶
func (*Job) GetKeyword ¶
func (*Job) GetUpdatedAt ¶
func (*Job) ProtoMessage ¶
func (*Job) ProtoMessage()
func (*Job) ProtoReflect ¶
func (x *Job) ProtoReflect() protoreflect.Message
func (*Job) Validate ¶
Validate checks the field values on 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 (*Job) ValidateAll ¶
ValidateAll checks the field values on 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 JobMultiError, or nil if none found.
type JobMultiError ¶
type JobMultiError []error
JobMultiError is an error wrapping multiple validation errors returned by Job.ValidateAll() if the designated constraints aren't met.
func (JobMultiError) AllErrors ¶
func (m JobMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (JobMultiError) Error ¶
func (m JobMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type JobValidationError ¶
type JobValidationError struct {
// contains filtered or unexported fields
}
JobValidationError is the validation error returned by Job.Validate if the designated constraints aren't met.
func (JobValidationError) Cause ¶
func (e JobValidationError) Cause() error
Cause function returns cause value.
func (JobValidationError) Error ¶
func (e JobValidationError) Error() string
Error satisfies the builtin error interface
func (JobValidationError) ErrorName ¶
func (e JobValidationError) ErrorName() string
ErrorName returns error name.
func (JobValidationError) Field ¶
func (e JobValidationError) Field() string
Field function returns field value.
func (JobValidationError) Key ¶
func (e JobValidationError) Key() bool
Key function returns key value.
func (JobValidationError) Reason ¶
func (e JobValidationError) Reason() string
Reason function returns reason value.
type PageJobReply ¶
type PageJobReply struct { Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` List []*Job `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*PageJobReply) Descriptor
deprecated
func (*PageJobReply) Descriptor() ([]byte, []int)
Deprecated: Use PageJobReply.ProtoReflect.Descriptor instead.
func (*PageJobReply) GetList ¶
func (x *PageJobReply) GetList() []*Job
func (*PageJobReply) GetTotal ¶
func (x *PageJobReply) GetTotal() uint32
func (*PageJobReply) ProtoMessage ¶
func (*PageJobReply) ProtoMessage()
func (*PageJobReply) ProtoReflect ¶
func (x *PageJobReply) ProtoReflect() protoreflect.Message
func (*PageJobReply) Reset ¶
func (x *PageJobReply) Reset()
func (*PageJobReply) String ¶
func (x *PageJobReply) String() string
func (*PageJobReply) Validate ¶
func (m *PageJobReply) Validate() error
Validate checks the field values on PageJobReply 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 (*PageJobReply) ValidateAll ¶
func (m *PageJobReply) ValidateAll() error
ValidateAll checks the field values on PageJobReply 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 PageJobReplyMultiError, or nil if none found.
type PageJobReplyMultiError ¶
type PageJobReplyMultiError []error
PageJobReplyMultiError is an error wrapping multiple validation errors returned by PageJobReply.ValidateAll() if the designated constraints aren't met.
func (PageJobReplyMultiError) AllErrors ¶
func (m PageJobReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PageJobReplyMultiError) Error ¶
func (m PageJobReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PageJobReplyValidationError ¶
type PageJobReplyValidationError struct {
// contains filtered or unexported fields
}
PageJobReplyValidationError is the validation error returned by PageJobReply.Validate if the designated constraints aren't met.
func (PageJobReplyValidationError) Cause ¶
func (e PageJobReplyValidationError) Cause() error
Cause function returns cause value.
func (PageJobReplyValidationError) Error ¶
func (e PageJobReplyValidationError) Error() string
Error satisfies the builtin error interface
func (PageJobReplyValidationError) ErrorName ¶
func (e PageJobReplyValidationError) ErrorName() string
ErrorName returns error name.
func (PageJobReplyValidationError) Field ¶
func (e PageJobReplyValidationError) Field() string
Field function returns field value.
func (PageJobReplyValidationError) Key ¶
func (e PageJobReplyValidationError) Key() bool
Key function returns key value.
func (PageJobReplyValidationError) Reason ¶
func (e PageJobReplyValidationError) Reason() string
Reason function returns reason value.
type PageJobRequest ¶
type PageJobRequest struct { Page uint32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` Name *string `protobuf:"bytes,3,opt,name=name,proto3,oneof" json:"name,omitempty"` Keyword *string `protobuf:"bytes,4,opt,name=keyword,proto3,oneof" json:"keyword,omitempty"` // contains filtered or unexported fields }
func (*PageJobRequest) Descriptor
deprecated
func (*PageJobRequest) Descriptor() ([]byte, []int)
Deprecated: Use PageJobRequest.ProtoReflect.Descriptor instead.
func (*PageJobRequest) GetKeyword ¶
func (x *PageJobRequest) GetKeyword() string
func (*PageJobRequest) GetName ¶
func (x *PageJobRequest) GetName() string
func (*PageJobRequest) GetPage ¶
func (x *PageJobRequest) GetPage() uint32
func (*PageJobRequest) GetPageSize ¶
func (x *PageJobRequest) GetPageSize() uint32
func (*PageJobRequest) ProtoMessage ¶
func (*PageJobRequest) ProtoMessage()
func (*PageJobRequest) ProtoReflect ¶
func (x *PageJobRequest) ProtoReflect() protoreflect.Message
func (*PageJobRequest) Reset ¶
func (x *PageJobRequest) Reset()
func (*PageJobRequest) String ¶
func (x *PageJobRequest) String() string
func (*PageJobRequest) Validate ¶
func (m *PageJobRequest) Validate() error
Validate checks the field values on PageJobRequest 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 (*PageJobRequest) ValidateAll ¶
func (m *PageJobRequest) ValidateAll() error
ValidateAll checks the field values on PageJobRequest 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 PageJobRequestMultiError, or nil if none found.
type PageJobRequestMultiError ¶
type PageJobRequestMultiError []error
PageJobRequestMultiError is an error wrapping multiple validation errors returned by PageJobRequest.ValidateAll() if the designated constraints aren't met.
func (PageJobRequestMultiError) AllErrors ¶
func (m PageJobRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PageJobRequestMultiError) Error ¶
func (m PageJobRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PageJobRequestValidationError ¶
type PageJobRequestValidationError struct {
// contains filtered or unexported fields
}
PageJobRequestValidationError is the validation error returned by PageJobRequest.Validate if the designated constraints aren't met.
func (PageJobRequestValidationError) Cause ¶
func (e PageJobRequestValidationError) Cause() error
Cause function returns cause value.
func (PageJobRequestValidationError) Error ¶
func (e PageJobRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PageJobRequestValidationError) ErrorName ¶
func (e PageJobRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PageJobRequestValidationError) Field ¶
func (e PageJobRequestValidationError) Field() string
Field function returns field value.
func (PageJobRequestValidationError) Key ¶
func (e PageJobRequestValidationError) Key() bool
Key function returns key value.
func (PageJobRequestValidationError) Reason ¶
func (e PageJobRequestValidationError) Reason() string
Reason function returns reason value.
type ServiceClient ¶
type ServiceClient interface { // PageJob 分页获取职位信息 PageJob(ctx context.Context, in *PageJobRequest, opts ...grpc.CallOption) (*PageJobReply, error) // AddJob 修改职位信息 AddJob(ctx context.Context, in *AddJobRequest, opts ...grpc.CallOption) (*AddJobReply, error) // UpdateJob 更新职位信息 UpdateJob(ctx context.Context, in *UpdateJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // DeleteJob 删除职位信息 DeleteJob(ctx context.Context, in *DeleteJobRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
ServiceClient is the client API for Service 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 NewServiceClient ¶
func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient
type ServiceHTTPClient ¶
type ServiceHTTPClient interface { AddJob(ctx context.Context, req *AddJobRequest, opts ...http.CallOption) (rsp *AddJobReply, err error) DeleteJob(ctx context.Context, req *DeleteJobRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) PageJob(ctx context.Context, req *PageJobRequest, opts ...http.CallOption) (rsp *PageJobReply, err error) UpdateJob(ctx context.Context, req *UpdateJobRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) }
func NewServiceHTTPClient ¶
func NewServiceHTTPClient(client *http.Client) ServiceHTTPClient
type ServiceHTTPClientImpl ¶
type ServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*ServiceHTTPClientImpl) AddJob ¶
func (c *ServiceHTTPClientImpl) AddJob(ctx context.Context, in *AddJobRequest, opts ...http.CallOption) (*AddJobReply, error)
func (*ServiceHTTPClientImpl) DeleteJob ¶
func (c *ServiceHTTPClientImpl) DeleteJob(ctx context.Context, in *DeleteJobRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*ServiceHTTPClientImpl) PageJob ¶
func (c *ServiceHTTPClientImpl) PageJob(ctx context.Context, in *PageJobRequest, opts ...http.CallOption) (*PageJobReply, error)
func (*ServiceHTTPClientImpl) UpdateJob ¶
func (c *ServiceHTTPClientImpl) UpdateJob(ctx context.Context, in *UpdateJobRequest, opts ...http.CallOption) (*emptypb.Empty, error)
type ServiceHTTPServer ¶
type ServiceHTTPServer interface { // AddJob AddJob 修改职位信息 AddJob(context.Context, *AddJobRequest) (*AddJobReply, error) // DeleteJob DeleteJob 删除职位信息 DeleteJob(context.Context, *DeleteJobRequest) (*emptypb.Empty, error) // PageJob PageJob 分页获取职位信息 PageJob(context.Context, *PageJobRequest) (*PageJobReply, error) // UpdateJob UpdateJob 更新职位信息 UpdateJob(context.Context, *UpdateJobRequest) (*emptypb.Empty, error) }
type ServiceServer ¶
type ServiceServer interface { // PageJob 分页获取职位信息 PageJob(context.Context, *PageJobRequest) (*PageJobReply, error) // AddJob 修改职位信息 AddJob(context.Context, *AddJobRequest) (*AddJobReply, error) // UpdateJob 更新职位信息 UpdateJob(context.Context, *UpdateJobRequest) (*emptypb.Empty, error) // DeleteJob 删除职位信息 DeleteJob(context.Context, *DeleteJobRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility
type UnimplementedServiceServer ¶
type UnimplementedServiceServer struct { }
UnimplementedServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedServiceServer) AddJob ¶
func (UnimplementedServiceServer) AddJob(context.Context, *AddJobRequest) (*AddJobReply, error)
func (UnimplementedServiceServer) DeleteJob ¶
func (UnimplementedServiceServer) DeleteJob(context.Context, *DeleteJobRequest) (*emptypb.Empty, error)
func (UnimplementedServiceServer) PageJob ¶
func (UnimplementedServiceServer) PageJob(context.Context, *PageJobRequest) (*PageJobReply, error)
func (UnimplementedServiceServer) UpdateJob ¶
func (UnimplementedServiceServer) UpdateJob(context.Context, *UpdateJobRequest) (*emptypb.Empty, error)
type UnsafeServiceServer ¶
type UnsafeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceServer will result in compilation errors.
type UpdateJobRequest ¶
type UpdateJobRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Weight *uint32 `protobuf:"varint,4,opt,name=weight,proto3,oneof" json:"weight,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) GetName ¶
func (x *UpdateJobRequest) GetName() string
func (*UpdateJobRequest) GetWeight ¶
func (x *UpdateJobRequest) GetWeight() uint32
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.