Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterJobRoleHTTPServer(s *http.Server, srv JobRoleHTTPServer)
- func RegisterJobRoleServer(s grpc.ServiceRegistrar, srv JobRoleServer)
- type CreateJobRoleReply
- func (*CreateJobRoleReply) Descriptor() ([]byte, []int)deprecated
- func (*CreateJobRoleReply) ProtoMessage()
- func (x *CreateJobRoleReply) ProtoReflect() protoreflect.Message
- func (x *CreateJobRoleReply) Reset()
- func (x *CreateJobRoleReply) String() string
- func (m *CreateJobRoleReply) Validate() error
- func (m *CreateJobRoleReply) ValidateAll() error
- type CreateJobRoleReplyMultiError
- type CreateJobRoleReplyValidationError
- func (e CreateJobRoleReplyValidationError) Cause() error
- func (e CreateJobRoleReplyValidationError) Error() string
- func (e CreateJobRoleReplyValidationError) ErrorName() string
- func (e CreateJobRoleReplyValidationError) Field() string
- func (e CreateJobRoleReplyValidationError) Key() bool
- func (e CreateJobRoleReplyValidationError) Reason() string
- type CreateJobRoleRequest
- func (*CreateJobRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateJobRoleRequest) GetJobId() uint32
- func (x *CreateJobRoleRequest) GetRoleId() uint32
- func (*CreateJobRoleRequest) ProtoMessage()
- func (x *CreateJobRoleRequest) ProtoReflect() protoreflect.Message
- func (x *CreateJobRoleRequest) Reset()
- func (x *CreateJobRoleRequest) String() string
- func (m *CreateJobRoleRequest) Validate() error
- func (m *CreateJobRoleRequest) ValidateAll() error
- type CreateJobRoleRequestMultiError
- type CreateJobRoleRequestValidationError
- func (e CreateJobRoleRequestValidationError) Cause() error
- func (e CreateJobRoleRequestValidationError) Error() string
- func (e CreateJobRoleRequestValidationError) ErrorName() string
- func (e CreateJobRoleRequestValidationError) Field() string
- func (e CreateJobRoleRequestValidationError) Key() bool
- func (e CreateJobRoleRequestValidationError) Reason() string
- type DeleteJobRoleReply
- func (*DeleteJobRoleReply) Descriptor() ([]byte, []int)deprecated
- func (*DeleteJobRoleReply) ProtoMessage()
- func (x *DeleteJobRoleReply) ProtoReflect() protoreflect.Message
- func (x *DeleteJobRoleReply) Reset()
- func (x *DeleteJobRoleReply) String() string
- func (m *DeleteJobRoleReply) Validate() error
- func (m *DeleteJobRoleReply) ValidateAll() error
- type DeleteJobRoleReplyMultiError
- type DeleteJobRoleReplyValidationError
- func (e DeleteJobRoleReplyValidationError) Cause() error
- func (e DeleteJobRoleReplyValidationError) Error() string
- func (e DeleteJobRoleReplyValidationError) ErrorName() string
- func (e DeleteJobRoleReplyValidationError) Field() string
- func (e DeleteJobRoleReplyValidationError) Key() bool
- func (e DeleteJobRoleReplyValidationError) Reason() string
- type DeleteJobRoleRequest
- func (*DeleteJobRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteJobRoleRequest) GetJobId() uint32
- func (x *DeleteJobRoleRequest) GetRoleId() uint32
- func (*DeleteJobRoleRequest) ProtoMessage()
- func (x *DeleteJobRoleRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteJobRoleRequest) Reset()
- func (x *DeleteJobRoleRequest) String() string
- func (m *DeleteJobRoleRequest) Validate() error
- func (m *DeleteJobRoleRequest) ValidateAll() error
- type DeleteJobRoleRequestMultiError
- type DeleteJobRoleRequestValidationError
- func (e DeleteJobRoleRequestValidationError) Cause() error
- func (e DeleteJobRoleRequestValidationError) Error() string
- func (e DeleteJobRoleRequestValidationError) ErrorName() string
- func (e DeleteJobRoleRequestValidationError) Field() string
- func (e DeleteJobRoleRequestValidationError) Key() bool
- func (e DeleteJobRoleRequestValidationError) Reason() string
- type JobRoleClient
- type JobRoleHTTPClient
- type JobRoleHTTPClientImpl
- func (c *JobRoleHTTPClientImpl) CreateJobRole(ctx context.Context, in *CreateJobRoleRequest, opts ...http.CallOption) (*CreateJobRoleReply, error)
- func (c *JobRoleHTTPClientImpl) DeleteJobRole(ctx context.Context, in *DeleteJobRoleRequest, opts ...http.CallOption) (*DeleteJobRoleReply, error)
- func (c *JobRoleHTTPClientImpl) ListJobRole(ctx context.Context, in *ListJobRoleRequest, opts ...http.CallOption) (*ListJobRoleReply, error)
- type JobRoleHTTPServer
- type JobRoleServer
- type ListJobRoleReply
- func (*ListJobRoleReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListJobRoleReply) GetList() []*ListJobRoleReply_Role
- func (x *ListJobRoleReply) GetTotal() uint32
- func (*ListJobRoleReply) ProtoMessage()
- func (x *ListJobRoleReply) ProtoReflect() protoreflect.Message
- func (x *ListJobRoleReply) Reset()
- func (x *ListJobRoleReply) String() string
- func (m *ListJobRoleReply) Validate() error
- func (m *ListJobRoleReply) ValidateAll() error
- type ListJobRoleReplyMultiError
- type ListJobRoleReplyValidationError
- func (e ListJobRoleReplyValidationError) Cause() error
- func (e ListJobRoleReplyValidationError) Error() string
- func (e ListJobRoleReplyValidationError) ErrorName() string
- func (e ListJobRoleReplyValidationError) Field() string
- func (e ListJobRoleReplyValidationError) Key() bool
- func (e ListJobRoleReplyValidationError) Reason() string
- type ListJobRoleReply_Role
- func (*ListJobRoleReply_Role) Descriptor() ([]byte, []int)deprecated
- func (x *ListJobRoleReply_Role) GetId() uint32
- func (x *ListJobRoleReply_Role) GetKeyword() string
- func (x *ListJobRoleReply_Role) GetName() string
- func (*ListJobRoleReply_Role) ProtoMessage()
- func (x *ListJobRoleReply_Role) ProtoReflect() protoreflect.Message
- func (x *ListJobRoleReply_Role) Reset()
- func (x *ListJobRoleReply_Role) String() string
- func (m *ListJobRoleReply_Role) Validate() error
- func (m *ListJobRoleReply_Role) ValidateAll() error
- type ListJobRoleReply_RoleMultiError
- type ListJobRoleReply_RoleValidationError
- func (e ListJobRoleReply_RoleValidationError) Cause() error
- func (e ListJobRoleReply_RoleValidationError) Error() string
- func (e ListJobRoleReply_RoleValidationError) ErrorName() string
- func (e ListJobRoleReply_RoleValidationError) Field() string
- func (e ListJobRoleReply_RoleValidationError) Key() bool
- func (e ListJobRoleReply_RoleValidationError) Reason() string
- type ListJobRoleRequest
- func (*ListJobRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListJobRoleRequest) GetJobId() uint32
- func (x *ListJobRoleRequest) GetName() string
- func (x *ListJobRoleRequest) GetPage() uint32
- func (x *ListJobRoleRequest) GetPageSize() uint32
- func (*ListJobRoleRequest) ProtoMessage()
- func (x *ListJobRoleRequest) ProtoReflect() protoreflect.Message
- func (x *ListJobRoleRequest) Reset()
- func (x *ListJobRoleRequest) String() string
- func (m *ListJobRoleRequest) Validate() error
- func (m *ListJobRoleRequest) ValidateAll() error
- type ListJobRoleRequestMultiError
- type ListJobRoleRequestValidationError
- func (e ListJobRoleRequestValidationError) Cause() error
- func (e ListJobRoleRequestValidationError) Error() string
- func (e ListJobRoleRequestValidationError) ErrorName() string
- func (e ListJobRoleRequestValidationError) Field() string
- func (e ListJobRoleRequestValidationError) Key() bool
- func (e ListJobRoleRequestValidationError) Reason() string
- type UnimplementedJobRoleServer
- func (UnimplementedJobRoleServer) CreateJobRole(context.Context, *CreateJobRoleRequest) (*CreateJobRoleReply, error)
- func (UnimplementedJobRoleServer) DeleteJobRole(context.Context, *DeleteJobRoleRequest) (*DeleteJobRoleReply, error)
- func (UnimplementedJobRoleServer) ListJobRole(context.Context, *ListJobRoleRequest) (*ListJobRoleReply, error)
- type UnsafeJobRoleServer
Constants ¶
const ( JobRole_ListJobRole_FullMethodName = "/manager.api.jobrole.JobRole/ListJobRole" JobRole_CreateJobRole_FullMethodName = "/manager.api.jobrole.JobRole/CreateJobRole" JobRole_DeleteJobRole_FullMethodName = "/manager.api.jobrole.JobRole/DeleteJobRole" )
const ( OperationJobRoleCreateJobRole = "/manager.api.jobrole.JobRole/CreateJobRole" OperationJobRoleDeleteJobRole = "/manager.api.jobrole.JobRole/DeleteJobRole" OperationJobRoleListJobRole = "/manager.api.jobrole.JobRole/ListJobRole" )
Variables ¶
var File_api_jobrole_proto_jobrole_proto protoreflect.FileDescriptor
var File_api_jobrole_proto_jobrole_service_proto protoreflect.FileDescriptor
var JobRole_ServiceDesc = grpc.ServiceDesc{ ServiceName: "manager.api.jobrole.JobRole", HandlerType: (*JobRoleServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListJobRole", Handler: _JobRole_ListJobRole_Handler, }, { MethodName: "CreateJobRole", Handler: _JobRole_CreateJobRole_Handler, }, { MethodName: "DeleteJobRole", Handler: _JobRole_DeleteJobRole_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/jobrole/proto/jobrole_service.proto", }
JobRole_ServiceDesc is the grpc.ServiceDesc for JobRole service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterJobRoleHTTPServer ¶
func RegisterJobRoleHTTPServer(s *http.Server, srv JobRoleHTTPServer)
func RegisterJobRoleServer ¶
func RegisterJobRoleServer(s grpc.ServiceRegistrar, srv JobRoleServer)
Types ¶
type CreateJobRoleReply ¶
type CreateJobRoleReply struct {
// contains filtered or unexported fields
}
func (*CreateJobRoleReply) Descriptor
deprecated
func (*CreateJobRoleReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateJobRoleReply.ProtoReflect.Descriptor instead.
func (*CreateJobRoleReply) ProtoMessage ¶
func (*CreateJobRoleReply) ProtoMessage()
func (*CreateJobRoleReply) ProtoReflect ¶
func (x *CreateJobRoleReply) ProtoReflect() protoreflect.Message
func (*CreateJobRoleReply) Reset ¶
func (x *CreateJobRoleReply) Reset()
func (*CreateJobRoleReply) String ¶
func (x *CreateJobRoleReply) String() string
func (*CreateJobRoleReply) Validate ¶
func (m *CreateJobRoleReply) Validate() error
Validate checks the field values on CreateJobRoleReply 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 (*CreateJobRoleReply) ValidateAll ¶
func (m *CreateJobRoleReply) ValidateAll() error
ValidateAll checks the field values on CreateJobRoleReply 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 CreateJobRoleReplyMultiError, or nil if none found.
type CreateJobRoleReplyMultiError ¶
type CreateJobRoleReplyMultiError []error
CreateJobRoleReplyMultiError is an error wrapping multiple validation errors returned by CreateJobRoleReply.ValidateAll() if the designated constraints aren't met.
func (CreateJobRoleReplyMultiError) AllErrors ¶
func (m CreateJobRoleReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateJobRoleReplyMultiError) Error ¶
func (m CreateJobRoleReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateJobRoleReplyValidationError ¶
type CreateJobRoleReplyValidationError struct {
// contains filtered or unexported fields
}
CreateJobRoleReplyValidationError is the validation error returned by CreateJobRoleReply.Validate if the designated constraints aren't met.
func (CreateJobRoleReplyValidationError) Cause ¶
func (e CreateJobRoleReplyValidationError) Cause() error
Cause function returns cause value.
func (CreateJobRoleReplyValidationError) Error ¶
func (e CreateJobRoleReplyValidationError) Error() string
Error satisfies the builtin error interface
func (CreateJobRoleReplyValidationError) ErrorName ¶
func (e CreateJobRoleReplyValidationError) ErrorName() string
ErrorName returns error name.
func (CreateJobRoleReplyValidationError) Field ¶
func (e CreateJobRoleReplyValidationError) Field() string
Field function returns field value.
func (CreateJobRoleReplyValidationError) Key ¶
func (e CreateJobRoleReplyValidationError) Key() bool
Key function returns key value.
func (CreateJobRoleReplyValidationError) Reason ¶
func (e CreateJobRoleReplyValidationError) Reason() string
Reason function returns reason value.
type CreateJobRoleRequest ¶
type CreateJobRoleRequest struct {
JobId uint32 `protobuf:"varint,1,opt,name=jobId,proto3" json:"jobId,omitempty"`
RoleId uint32 `protobuf:"varint,2,opt,name=roleId,proto3" json:"roleId,omitempty"`
// contains filtered or unexported fields
}
func (*CreateJobRoleRequest) Descriptor
deprecated
func (*CreateJobRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateJobRoleRequest.ProtoReflect.Descriptor instead.
func (*CreateJobRoleRequest) GetJobId ¶
func (x *CreateJobRoleRequest) GetJobId() uint32
func (*CreateJobRoleRequest) GetRoleId ¶
func (x *CreateJobRoleRequest) GetRoleId() uint32
func (*CreateJobRoleRequest) ProtoMessage ¶
func (*CreateJobRoleRequest) ProtoMessage()
func (*CreateJobRoleRequest) ProtoReflect ¶
func (x *CreateJobRoleRequest) ProtoReflect() protoreflect.Message
func (*CreateJobRoleRequest) Reset ¶
func (x *CreateJobRoleRequest) Reset()
func (*CreateJobRoleRequest) String ¶
func (x *CreateJobRoleRequest) String() string
func (*CreateJobRoleRequest) Validate ¶
func (m *CreateJobRoleRequest) Validate() error
Validate checks the field values on CreateJobRoleRequest 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 (*CreateJobRoleRequest) ValidateAll ¶
func (m *CreateJobRoleRequest) ValidateAll() error
ValidateAll checks the field values on CreateJobRoleRequest 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 CreateJobRoleRequestMultiError, or nil if none found.
type CreateJobRoleRequestMultiError ¶
type CreateJobRoleRequestMultiError []error
CreateJobRoleRequestMultiError is an error wrapping multiple validation errors returned by CreateJobRoleRequest.ValidateAll() if the designated constraints aren't met.
func (CreateJobRoleRequestMultiError) AllErrors ¶
func (m CreateJobRoleRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateJobRoleRequestMultiError) Error ¶
func (m CreateJobRoleRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateJobRoleRequestValidationError ¶
type CreateJobRoleRequestValidationError struct {
// contains filtered or unexported fields
}
CreateJobRoleRequestValidationError is the validation error returned by CreateJobRoleRequest.Validate if the designated constraints aren't met.
func (CreateJobRoleRequestValidationError) Cause ¶
func (e CreateJobRoleRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateJobRoleRequestValidationError) Error ¶
func (e CreateJobRoleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateJobRoleRequestValidationError) ErrorName ¶
func (e CreateJobRoleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateJobRoleRequestValidationError) Field ¶
func (e CreateJobRoleRequestValidationError) Field() string
Field function returns field value.
func (CreateJobRoleRequestValidationError) Key ¶
func (e CreateJobRoleRequestValidationError) Key() bool
Key function returns key value.
func (CreateJobRoleRequestValidationError) Reason ¶
func (e CreateJobRoleRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteJobRoleReply ¶
type DeleteJobRoleReply struct {
// contains filtered or unexported fields
}
func (*DeleteJobRoleReply) Descriptor
deprecated
func (*DeleteJobRoleReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteJobRoleReply.ProtoReflect.Descriptor instead.
func (*DeleteJobRoleReply) ProtoMessage ¶
func (*DeleteJobRoleReply) ProtoMessage()
func (*DeleteJobRoleReply) ProtoReflect ¶
func (x *DeleteJobRoleReply) ProtoReflect() protoreflect.Message
func (*DeleteJobRoleReply) Reset ¶
func (x *DeleteJobRoleReply) Reset()
func (*DeleteJobRoleReply) String ¶
func (x *DeleteJobRoleReply) String() string
func (*DeleteJobRoleReply) Validate ¶
func (m *DeleteJobRoleReply) Validate() error
Validate checks the field values on DeleteJobRoleReply 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 (*DeleteJobRoleReply) ValidateAll ¶
func (m *DeleteJobRoleReply) ValidateAll() error
ValidateAll checks the field values on DeleteJobRoleReply 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 DeleteJobRoleReplyMultiError, or nil if none found.
type DeleteJobRoleReplyMultiError ¶
type DeleteJobRoleReplyMultiError []error
DeleteJobRoleReplyMultiError is an error wrapping multiple validation errors returned by DeleteJobRoleReply.ValidateAll() if the designated constraints aren't met.
func (DeleteJobRoleReplyMultiError) AllErrors ¶
func (m DeleteJobRoleReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteJobRoleReplyMultiError) Error ¶
func (m DeleteJobRoleReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteJobRoleReplyValidationError ¶
type DeleteJobRoleReplyValidationError struct {
// contains filtered or unexported fields
}
DeleteJobRoleReplyValidationError is the validation error returned by DeleteJobRoleReply.Validate if the designated constraints aren't met.
func (DeleteJobRoleReplyValidationError) Cause ¶
func (e DeleteJobRoleReplyValidationError) Cause() error
Cause function returns cause value.
func (DeleteJobRoleReplyValidationError) Error ¶
func (e DeleteJobRoleReplyValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteJobRoleReplyValidationError) ErrorName ¶
func (e DeleteJobRoleReplyValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteJobRoleReplyValidationError) Field ¶
func (e DeleteJobRoleReplyValidationError) Field() string
Field function returns field value.
func (DeleteJobRoleReplyValidationError) Key ¶
func (e DeleteJobRoleReplyValidationError) Key() bool
Key function returns key value.
func (DeleteJobRoleReplyValidationError) Reason ¶
func (e DeleteJobRoleReplyValidationError) Reason() string
Reason function returns reason value.
type DeleteJobRoleRequest ¶
type DeleteJobRoleRequest struct {
JobId uint32 `protobuf:"varint,1,opt,name=jobId,proto3" json:"jobId,omitempty"`
RoleId uint32 `protobuf:"varint,2,opt,name=roleId,proto3" json:"roleId,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteJobRoleRequest) Descriptor
deprecated
func (*DeleteJobRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteJobRoleRequest.ProtoReflect.Descriptor instead.
func (*DeleteJobRoleRequest) GetJobId ¶
func (x *DeleteJobRoleRequest) GetJobId() uint32
func (*DeleteJobRoleRequest) GetRoleId ¶
func (x *DeleteJobRoleRequest) GetRoleId() uint32
func (*DeleteJobRoleRequest) ProtoMessage ¶
func (*DeleteJobRoleRequest) ProtoMessage()
func (*DeleteJobRoleRequest) ProtoReflect ¶
func (x *DeleteJobRoleRequest) ProtoReflect() protoreflect.Message
func (*DeleteJobRoleRequest) Reset ¶
func (x *DeleteJobRoleRequest) Reset()
func (*DeleteJobRoleRequest) String ¶
func (x *DeleteJobRoleRequest) String() string
func (*DeleteJobRoleRequest) Validate ¶
func (m *DeleteJobRoleRequest) Validate() error
Validate checks the field values on DeleteJobRoleRequest 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 (*DeleteJobRoleRequest) ValidateAll ¶
func (m *DeleteJobRoleRequest) ValidateAll() error
ValidateAll checks the field values on DeleteJobRoleRequest 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 DeleteJobRoleRequestMultiError, or nil if none found.
type DeleteJobRoleRequestMultiError ¶
type DeleteJobRoleRequestMultiError []error
DeleteJobRoleRequestMultiError is an error wrapping multiple validation errors returned by DeleteJobRoleRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteJobRoleRequestMultiError) AllErrors ¶
func (m DeleteJobRoleRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteJobRoleRequestMultiError) Error ¶
func (m DeleteJobRoleRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteJobRoleRequestValidationError ¶
type DeleteJobRoleRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteJobRoleRequestValidationError is the validation error returned by DeleteJobRoleRequest.Validate if the designated constraints aren't met.
func (DeleteJobRoleRequestValidationError) Cause ¶
func (e DeleteJobRoleRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteJobRoleRequestValidationError) Error ¶
func (e DeleteJobRoleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteJobRoleRequestValidationError) ErrorName ¶
func (e DeleteJobRoleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteJobRoleRequestValidationError) Field ¶
func (e DeleteJobRoleRequestValidationError) Field() string
Field function returns field value.
func (DeleteJobRoleRequestValidationError) Key ¶
func (e DeleteJobRoleRequestValidationError) Key() bool
Key function returns key value.
func (DeleteJobRoleRequestValidationError) Reason ¶
func (e DeleteJobRoleRequestValidationError) Reason() string
Reason function returns reason value.
type JobRoleClient ¶
type JobRoleClient interface {
ListJobRole(ctx context.Context, in *ListJobRoleRequest, opts ...grpc.CallOption) (*ListJobRoleReply, error)
CreateJobRole(ctx context.Context, in *CreateJobRoleRequest, opts ...grpc.CallOption) (*CreateJobRoleReply, error)
DeleteJobRole(ctx context.Context, in *DeleteJobRoleRequest, opts ...grpc.CallOption) (*DeleteJobRoleReply, error)
}
JobRoleClient is the client API for JobRole 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 NewJobRoleClient ¶
func NewJobRoleClient(cc grpc.ClientConnInterface) JobRoleClient
type JobRoleHTTPClient ¶
type JobRoleHTTPClient interface {
CreateJobRole(ctx context.Context, req *CreateJobRoleRequest, opts ...http.CallOption) (rsp *CreateJobRoleReply, err error)
DeleteJobRole(ctx context.Context, req *DeleteJobRoleRequest, opts ...http.CallOption) (rsp *DeleteJobRoleReply, err error)
ListJobRole(ctx context.Context, req *ListJobRoleRequest, opts ...http.CallOption) (rsp *ListJobRoleReply, err error)
}
func NewJobRoleHTTPClient ¶
func NewJobRoleHTTPClient(client *http.Client) JobRoleHTTPClient
type JobRoleHTTPClientImpl ¶
type JobRoleHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*JobRoleHTTPClientImpl) CreateJobRole ¶
func (c *JobRoleHTTPClientImpl) CreateJobRole(ctx context.Context, in *CreateJobRoleRequest, opts ...http.CallOption) (*CreateJobRoleReply, error)
func (*JobRoleHTTPClientImpl) DeleteJobRole ¶
func (c *JobRoleHTTPClientImpl) DeleteJobRole(ctx context.Context, in *DeleteJobRoleRequest, opts ...http.CallOption) (*DeleteJobRoleReply, error)
func (*JobRoleHTTPClientImpl) ListJobRole ¶
func (c *JobRoleHTTPClientImpl) ListJobRole(ctx context.Context, in *ListJobRoleRequest, opts ...http.CallOption) (*ListJobRoleReply, error)
type JobRoleHTTPServer ¶
type JobRoleHTTPServer interface {
CreateJobRole(context.Context, *CreateJobRoleRequest) (*CreateJobRoleReply, error)
DeleteJobRole(context.Context, *DeleteJobRoleRequest) (*DeleteJobRoleReply, error)
ListJobRole(context.Context, *ListJobRoleRequest) (*ListJobRoleReply, error)
}
type JobRoleServer ¶
type JobRoleServer interface {
ListJobRole(context.Context, *ListJobRoleRequest) (*ListJobRoleReply, error)
CreateJobRole(context.Context, *CreateJobRoleRequest) (*CreateJobRoleReply, error)
DeleteJobRole(context.Context, *DeleteJobRoleRequest) (*DeleteJobRoleReply, error)
// contains filtered or unexported methods
}
JobRoleServer is the server API for JobRole service. All implementations must embed UnimplementedJobRoleServer for forward compatibility
type ListJobRoleReply ¶
type ListJobRoleReply struct {
List []*ListJobRoleReply_Role `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
Total uint32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
// contains filtered or unexported fields
}
func (*ListJobRoleReply) Descriptor
deprecated
func (*ListJobRoleReply) Descriptor() ([]byte, []int)
Deprecated: Use ListJobRoleReply.ProtoReflect.Descriptor instead.
func (*ListJobRoleReply) GetList ¶
func (x *ListJobRoleReply) GetList() []*ListJobRoleReply_Role
func (*ListJobRoleReply) GetTotal ¶
func (x *ListJobRoleReply) GetTotal() uint32
func (*ListJobRoleReply) ProtoMessage ¶
func (*ListJobRoleReply) ProtoMessage()
func (*ListJobRoleReply) ProtoReflect ¶
func (x *ListJobRoleReply) ProtoReflect() protoreflect.Message
func (*ListJobRoleReply) Reset ¶
func (x *ListJobRoleReply) Reset()
func (*ListJobRoleReply) String ¶
func (x *ListJobRoleReply) String() string
func (*ListJobRoleReply) Validate ¶
func (m *ListJobRoleReply) Validate() error
Validate checks the field values on ListJobRoleReply 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 (*ListJobRoleReply) ValidateAll ¶
func (m *ListJobRoleReply) ValidateAll() error
ValidateAll checks the field values on ListJobRoleReply 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 ListJobRoleReplyMultiError, or nil if none found.
type ListJobRoleReplyMultiError ¶
type ListJobRoleReplyMultiError []error
ListJobRoleReplyMultiError is an error wrapping multiple validation errors returned by ListJobRoleReply.ValidateAll() if the designated constraints aren't met.
func (ListJobRoleReplyMultiError) AllErrors ¶
func (m ListJobRoleReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListJobRoleReplyMultiError) Error ¶
func (m ListJobRoleReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListJobRoleReplyValidationError ¶
type ListJobRoleReplyValidationError struct {
// contains filtered or unexported fields
}
ListJobRoleReplyValidationError is the validation error returned by ListJobRoleReply.Validate if the designated constraints aren't met.
func (ListJobRoleReplyValidationError) Cause ¶
func (e ListJobRoleReplyValidationError) Cause() error
Cause function returns cause value.
func (ListJobRoleReplyValidationError) Error ¶
func (e ListJobRoleReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ListJobRoleReplyValidationError) ErrorName ¶
func (e ListJobRoleReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ListJobRoleReplyValidationError) Field ¶
func (e ListJobRoleReplyValidationError) Field() string
Field function returns field value.
func (ListJobRoleReplyValidationError) Key ¶
func (e ListJobRoleReplyValidationError) Key() bool
Key function returns key value.
func (ListJobRoleReplyValidationError) Reason ¶
func (e ListJobRoleReplyValidationError) Reason() string
Reason function returns reason value.
type ListJobRoleReply_Role ¶
type ListJobRoleReply_Role 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"`
// contains filtered or unexported fields
}
func (*ListJobRoleReply_Role) Descriptor
deprecated
func (*ListJobRoleReply_Role) Descriptor() ([]byte, []int)
Deprecated: Use ListJobRoleReply_Role.ProtoReflect.Descriptor instead.
func (*ListJobRoleReply_Role) GetId ¶
func (x *ListJobRoleReply_Role) GetId() uint32
func (*ListJobRoleReply_Role) GetKeyword ¶
func (x *ListJobRoleReply_Role) GetKeyword() string
func (*ListJobRoleReply_Role) GetName ¶
func (x *ListJobRoleReply_Role) GetName() string
func (*ListJobRoleReply_Role) ProtoMessage ¶
func (*ListJobRoleReply_Role) ProtoMessage()
func (*ListJobRoleReply_Role) ProtoReflect ¶
func (x *ListJobRoleReply_Role) ProtoReflect() protoreflect.Message
func (*ListJobRoleReply_Role) Reset ¶
func (x *ListJobRoleReply_Role) Reset()
func (*ListJobRoleReply_Role) String ¶
func (x *ListJobRoleReply_Role) String() string
func (*ListJobRoleReply_Role) Validate ¶
func (m *ListJobRoleReply_Role) Validate() error
Validate checks the field values on ListJobRoleReply_Role 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 (*ListJobRoleReply_Role) ValidateAll ¶
func (m *ListJobRoleReply_Role) ValidateAll() error
ValidateAll checks the field values on ListJobRoleReply_Role 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 ListJobRoleReply_RoleMultiError, or nil if none found.
type ListJobRoleReply_RoleMultiError ¶
type ListJobRoleReply_RoleMultiError []error
ListJobRoleReply_RoleMultiError is an error wrapping multiple validation errors returned by ListJobRoleReply_Role.ValidateAll() if the designated constraints aren't met.
func (ListJobRoleReply_RoleMultiError) AllErrors ¶
func (m ListJobRoleReply_RoleMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListJobRoleReply_RoleMultiError) Error ¶
func (m ListJobRoleReply_RoleMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListJobRoleReply_RoleValidationError ¶
type ListJobRoleReply_RoleValidationError struct {
// contains filtered or unexported fields
}
ListJobRoleReply_RoleValidationError is the validation error returned by ListJobRoleReply_Role.Validate if the designated constraints aren't met.
func (ListJobRoleReply_RoleValidationError) Cause ¶
func (e ListJobRoleReply_RoleValidationError) Cause() error
Cause function returns cause value.
func (ListJobRoleReply_RoleValidationError) Error ¶
func (e ListJobRoleReply_RoleValidationError) Error() string
Error satisfies the builtin error interface
func (ListJobRoleReply_RoleValidationError) ErrorName ¶
func (e ListJobRoleReply_RoleValidationError) ErrorName() string
ErrorName returns error name.
func (ListJobRoleReply_RoleValidationError) Field ¶
func (e ListJobRoleReply_RoleValidationError) Field() string
Field function returns field value.
func (ListJobRoleReply_RoleValidationError) Key ¶
func (e ListJobRoleReply_RoleValidationError) Key() bool
Key function returns key value.
func (ListJobRoleReply_RoleValidationError) Reason ¶
func (e ListJobRoleReply_RoleValidationError) Reason() string
Reason function returns reason value.
type ListJobRoleRequest ¶
type ListJobRoleRequest 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"`
JobId uint32 `protobuf:"varint,3,opt,name=jobId,proto3" json:"jobId,omitempty"`
Name *string `protobuf:"bytes,4,opt,name=name,proto3,oneof" json:"name,omitempty"`
// contains filtered or unexported fields
}
func (*ListJobRoleRequest) Descriptor
deprecated
func (*ListJobRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListJobRoleRequest.ProtoReflect.Descriptor instead.
func (*ListJobRoleRequest) GetJobId ¶
func (x *ListJobRoleRequest) GetJobId() uint32
func (*ListJobRoleRequest) GetName ¶
func (x *ListJobRoleRequest) GetName() string
func (*ListJobRoleRequest) GetPage ¶
func (x *ListJobRoleRequest) GetPage() uint32
func (*ListJobRoleRequest) GetPageSize ¶
func (x *ListJobRoleRequest) GetPageSize() uint32
func (*ListJobRoleRequest) ProtoMessage ¶
func (*ListJobRoleRequest) ProtoMessage()
func (*ListJobRoleRequest) ProtoReflect ¶
func (x *ListJobRoleRequest) ProtoReflect() protoreflect.Message
func (*ListJobRoleRequest) Reset ¶
func (x *ListJobRoleRequest) Reset()
func (*ListJobRoleRequest) String ¶
func (x *ListJobRoleRequest) String() string
func (*ListJobRoleRequest) Validate ¶
func (m *ListJobRoleRequest) Validate() error
Validate checks the field values on ListJobRoleRequest 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 (*ListJobRoleRequest) ValidateAll ¶
func (m *ListJobRoleRequest) ValidateAll() error
ValidateAll checks the field values on ListJobRoleRequest 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 ListJobRoleRequestMultiError, or nil if none found.
type ListJobRoleRequestMultiError ¶
type ListJobRoleRequestMultiError []error
ListJobRoleRequestMultiError is an error wrapping multiple validation errors returned by ListJobRoleRequest.ValidateAll() if the designated constraints aren't met.
func (ListJobRoleRequestMultiError) AllErrors ¶
func (m ListJobRoleRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListJobRoleRequestMultiError) Error ¶
func (m ListJobRoleRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListJobRoleRequestValidationError ¶
type ListJobRoleRequestValidationError struct {
// contains filtered or unexported fields
}
ListJobRoleRequestValidationError is the validation error returned by ListJobRoleRequest.Validate if the designated constraints aren't met.
func (ListJobRoleRequestValidationError) Cause ¶
func (e ListJobRoleRequestValidationError) Cause() error
Cause function returns cause value.
func (ListJobRoleRequestValidationError) Error ¶
func (e ListJobRoleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListJobRoleRequestValidationError) ErrorName ¶
func (e ListJobRoleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListJobRoleRequestValidationError) Field ¶
func (e ListJobRoleRequestValidationError) Field() string
Field function returns field value.
func (ListJobRoleRequestValidationError) Key ¶
func (e ListJobRoleRequestValidationError) Key() bool
Key function returns key value.
func (ListJobRoleRequestValidationError) Reason ¶
func (e ListJobRoleRequestValidationError) Reason() string
Reason function returns reason value.
type UnimplementedJobRoleServer ¶
type UnimplementedJobRoleServer struct{}
UnimplementedJobRoleServer must be embedded to have forward compatible implementations.
func (UnimplementedJobRoleServer) CreateJobRole ¶
func (UnimplementedJobRoleServer) CreateJobRole(context.Context, *CreateJobRoleRequest) (*CreateJobRoleReply, error)
func (UnimplementedJobRoleServer) DeleteJobRole ¶
func (UnimplementedJobRoleServer) DeleteJobRole(context.Context, *DeleteJobRoleRequest) (*DeleteJobRoleReply, error)
func (UnimplementedJobRoleServer) ListJobRole ¶
func (UnimplementedJobRoleServer) ListJobRole(context.Context, *ListJobRoleRequest) (*ListJobRoleReply, error)
type UnsafeJobRoleServer ¶
type UnsafeJobRoleServer interface {
// contains filtered or unexported methods
}
UnsafeJobRoleServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to JobRoleServer will result in compilation errors.