Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterCompletorServiceServer(s grpc.ServiceRegistrar, srv CompletorServiceServer)
- type CompleteCitizensRequest
- func (*CompleteCitizensRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CompleteCitizensRequest) GetSearch() string
- func (*CompleteCitizensRequest) ProtoMessage()
- func (x *CompleteCitizensRequest) ProtoReflect() protoreflect.Message
- func (x *CompleteCitizensRequest) Reset()
- func (x *CompleteCitizensRequest) String() string
- func (m *CompleteCitizensRequest) Validate() error
- func (m *CompleteCitizensRequest) ValidateAll() error
- type CompleteCitizensRequestMultiError
- type CompleteCitizensRequestValidationError
- func (e CompleteCitizensRequestValidationError) Cause() error
- func (e CompleteCitizensRequestValidationError) Error() string
- func (e CompleteCitizensRequestValidationError) ErrorName() string
- func (e CompleteCitizensRequestValidationError) Field() string
- func (e CompleteCitizensRequestValidationError) Key() bool
- func (e CompleteCitizensRequestValidationError) Reason() string
- type CompleteCitizensRespoonse
- func (*CompleteCitizensRespoonse) Descriptor() ([]byte, []int)deprecated
- func (x *CompleteCitizensRespoonse) GetUsers() []*users.UserShort
- func (*CompleteCitizensRespoonse) ProtoMessage()
- func (x *CompleteCitizensRespoonse) ProtoReflect() protoreflect.Message
- func (x *CompleteCitizensRespoonse) Reset()
- func (x *CompleteCitizensRespoonse) String() string
- func (m *CompleteCitizensRespoonse) Validate() error
- func (m *CompleteCitizensRespoonse) ValidateAll() error
- type CompleteCitizensRespoonseMultiError
- type CompleteCitizensRespoonseValidationError
- func (e CompleteCitizensRespoonseValidationError) Cause() error
- func (e CompleteCitizensRespoonseValidationError) Error() string
- func (e CompleteCitizensRespoonseValidationError) ErrorName() string
- func (e CompleteCitizensRespoonseValidationError) Field() string
- func (e CompleteCitizensRespoonseValidationError) Key() bool
- func (e CompleteCitizensRespoonseValidationError) Reason() string
- type CompleteDocumentCategoriesRequest
- func (*CompleteDocumentCategoriesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CompleteDocumentCategoriesRequest) GetSearch() string
- func (*CompleteDocumentCategoriesRequest) ProtoMessage()
- func (x *CompleteDocumentCategoriesRequest) ProtoReflect() protoreflect.Message
- func (x *CompleteDocumentCategoriesRequest) Reset()
- func (x *CompleteDocumentCategoriesRequest) String() string
- func (m *CompleteDocumentCategoriesRequest) Validate() error
- func (m *CompleteDocumentCategoriesRequest) ValidateAll() error
- type CompleteDocumentCategoriesRequestMultiError
- type CompleteDocumentCategoriesRequestValidationError
- func (e CompleteDocumentCategoriesRequestValidationError) Cause() error
- func (e CompleteDocumentCategoriesRequestValidationError) Error() string
- func (e CompleteDocumentCategoriesRequestValidationError) ErrorName() string
- func (e CompleteDocumentCategoriesRequestValidationError) Field() string
- func (e CompleteDocumentCategoriesRequestValidationError) Key() bool
- func (e CompleteDocumentCategoriesRequestValidationError) Reason() string
- type CompleteDocumentCategoriesResponse
- func (*CompleteDocumentCategoriesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CompleteDocumentCategoriesResponse) GetCategories() []*documents.DocumentCategory
- func (*CompleteDocumentCategoriesResponse) ProtoMessage()
- func (x *CompleteDocumentCategoriesResponse) ProtoReflect() protoreflect.Message
- func (x *CompleteDocumentCategoriesResponse) Reset()
- func (x *CompleteDocumentCategoriesResponse) String() string
- func (m *CompleteDocumentCategoriesResponse) Validate() error
- func (m *CompleteDocumentCategoriesResponse) ValidateAll() error
- type CompleteDocumentCategoriesResponseMultiError
- type CompleteDocumentCategoriesResponseValidationError
- func (e CompleteDocumentCategoriesResponseValidationError) Cause() error
- func (e CompleteDocumentCategoriesResponseValidationError) Error() string
- func (e CompleteDocumentCategoriesResponseValidationError) ErrorName() string
- func (e CompleteDocumentCategoriesResponseValidationError) Field() string
- func (e CompleteDocumentCategoriesResponseValidationError) Key() bool
- func (e CompleteDocumentCategoriesResponseValidationError) Reason() string
- type CompleteJobsRequest
- func (*CompleteJobsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CompleteJobsRequest) GetCurrentJob() bool
- func (x *CompleteJobsRequest) GetExactMatch() bool
- func (x *CompleteJobsRequest) GetSearch() string
- func (*CompleteJobsRequest) ProtoMessage()
- func (x *CompleteJobsRequest) ProtoReflect() protoreflect.Message
- func (x *CompleteJobsRequest) Reset()
- func (x *CompleteJobsRequest) String() string
- func (m *CompleteJobsRequest) Validate() error
- func (m *CompleteJobsRequest) ValidateAll() error
- type CompleteJobsRequestMultiError
- type CompleteJobsRequestValidationError
- func (e CompleteJobsRequestValidationError) Cause() error
- func (e CompleteJobsRequestValidationError) Error() string
- func (e CompleteJobsRequestValidationError) ErrorName() string
- func (e CompleteJobsRequestValidationError) Field() string
- func (e CompleteJobsRequestValidationError) Key() bool
- func (e CompleteJobsRequestValidationError) Reason() string
- type CompleteJobsResponse
- func (*CompleteJobsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CompleteJobsResponse) GetJobs() []*jobs.Job
- func (*CompleteJobsResponse) ProtoMessage()
- func (x *CompleteJobsResponse) ProtoReflect() protoreflect.Message
- func (x *CompleteJobsResponse) Reset()
- func (x *CompleteJobsResponse) String() string
- func (m *CompleteJobsResponse) Validate() error
- func (m *CompleteJobsResponse) ValidateAll() error
- type CompleteJobsResponseMultiError
- type CompleteJobsResponseValidationError
- func (e CompleteJobsResponseValidationError) Cause() error
- func (e CompleteJobsResponseValidationError) Error() string
- func (e CompleteJobsResponseValidationError) ErrorName() string
- func (e CompleteJobsResponseValidationError) Field() string
- func (e CompleteJobsResponseValidationError) Key() bool
- func (e CompleteJobsResponseValidationError) Reason() string
- type CompletorServiceClient
- type CompletorServiceServer
- type Server
- func (s *Server) CompleteCitizens(ctx context.Context, req *CompleteCitizensRequest) (*CompleteCitizensRespoonse, error)
- func (s *Server) CompleteDocumentCategories(ctx context.Context, req *CompleteDocumentCategoriesRequest) (*CompleteDocumentCategoriesResponse, error)
- func (s *Server) CompleteJobs(ctx context.Context, req *CompleteJobsRequest) (*CompleteJobsResponse, error)
- type UnimplementedCompletorServiceServer
- func (UnimplementedCompletorServiceServer) CompleteCitizens(context.Context, *CompleteCitizensRequest) (*CompleteCitizensRespoonse, error)
- func (UnimplementedCompletorServiceServer) CompleteDocumentCategories(context.Context, *CompleteDocumentCategoriesRequest) (*CompleteDocumentCategoriesResponse, error)
- func (UnimplementedCompletorServiceServer) CompleteJobs(context.Context, *CompleteJobsRequest) (*CompleteJobsResponse, error)
- type UnsafeCompletorServiceServer
Constants ¶
const ( CompletorServicePerm perms.Category = "CompletorService" CompletorServiceCompleteCitizensPerm perms.Name = "CompleteCitizens" CompletorServiceCompleteDocumentCategoriesPerm perms.Name = "CompleteDocumentCategories" CompletorServiceCompleteDocumentCategoriesJobsPermField perms.Key = "Jobs" CompletorServiceCompleteJobsPerm perms.Name = "CompleteJobs" )
Variables ¶
var CompletorService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "services.completor.CompletorService", HandlerType: (*CompletorServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CompleteCitizens", Handler: _CompletorService_CompleteCitizens_Handler, }, { MethodName: "CompleteJobs", Handler: _CompletorService_CompleteJobs_Handler, }, { MethodName: "CompleteDocumentCategories", Handler: _CompletorService_CompleteDocumentCategories_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "services/completor/completor.proto", }
CompletorService_ServiceDesc is the grpc.ServiceDesc for CompletorService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var (
FailedSearchErr = status.Error(codes.Internal, "Failed to complete/ search the data!")
)
var File_services_completor_completor_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCompletorServiceServer ¶
func RegisterCompletorServiceServer(s grpc.ServiceRegistrar, srv CompletorServiceServer)
Types ¶
type CompleteCitizensRequest ¶
type CompleteCitizensRequest struct { Search string `protobuf:"bytes,1,opt,name=search,proto3" json:"search,omitempty"` // contains filtered or unexported fields }
func (*CompleteCitizensRequest) Descriptor
deprecated
func (*CompleteCitizensRequest) Descriptor() ([]byte, []int)
Deprecated: Use CompleteCitizensRequest.ProtoReflect.Descriptor instead.
func (*CompleteCitizensRequest) GetSearch ¶
func (x *CompleteCitizensRequest) GetSearch() string
func (*CompleteCitizensRequest) ProtoMessage ¶
func (*CompleteCitizensRequest) ProtoMessage()
func (*CompleteCitizensRequest) ProtoReflect ¶
func (x *CompleteCitizensRequest) ProtoReflect() protoreflect.Message
func (*CompleteCitizensRequest) Reset ¶
func (x *CompleteCitizensRequest) Reset()
func (*CompleteCitizensRequest) String ¶
func (x *CompleteCitizensRequest) String() string
func (*CompleteCitizensRequest) Validate ¶
func (m *CompleteCitizensRequest) Validate() error
Validate checks the field values on CompleteCitizensRequest 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 (*CompleteCitizensRequest) ValidateAll ¶
func (m *CompleteCitizensRequest) ValidateAll() error
ValidateAll checks the field values on CompleteCitizensRequest 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 CompleteCitizensRequestMultiError, or nil if none found.
type CompleteCitizensRequestMultiError ¶
type CompleteCitizensRequestMultiError []error
CompleteCitizensRequestMultiError is an error wrapping multiple validation errors returned by CompleteCitizensRequest.ValidateAll() if the designated constraints aren't met.
func (CompleteCitizensRequestMultiError) AllErrors ¶
func (m CompleteCitizensRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CompleteCitizensRequestMultiError) Error ¶
func (m CompleteCitizensRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CompleteCitizensRequestValidationError ¶
type CompleteCitizensRequestValidationError struct {
// contains filtered or unexported fields
}
CompleteCitizensRequestValidationError is the validation error returned by CompleteCitizensRequest.Validate if the designated constraints aren't met.
func (CompleteCitizensRequestValidationError) Cause ¶
func (e CompleteCitizensRequestValidationError) Cause() error
Cause function returns cause value.
func (CompleteCitizensRequestValidationError) Error ¶
func (e CompleteCitizensRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CompleteCitizensRequestValidationError) ErrorName ¶
func (e CompleteCitizensRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CompleteCitizensRequestValidationError) Field ¶
func (e CompleteCitizensRequestValidationError) Field() string
Field function returns field value.
func (CompleteCitizensRequestValidationError) Key ¶
func (e CompleteCitizensRequestValidationError) Key() bool
Key function returns key value.
func (CompleteCitizensRequestValidationError) Reason ¶
func (e CompleteCitizensRequestValidationError) Reason() string
Reason function returns reason value.
type CompleteCitizensRespoonse ¶
type CompleteCitizensRespoonse struct { Users []*users.UserShort `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty" alias:"user"` // @gotags: alias:"user" // contains filtered or unexported fields }
func (*CompleteCitizensRespoonse) Descriptor
deprecated
func (*CompleteCitizensRespoonse) Descriptor() ([]byte, []int)
Deprecated: Use CompleteCitizensRespoonse.ProtoReflect.Descriptor instead.
func (*CompleteCitizensRespoonse) GetUsers ¶
func (x *CompleteCitizensRespoonse) GetUsers() []*users.UserShort
func (*CompleteCitizensRespoonse) ProtoMessage ¶
func (*CompleteCitizensRespoonse) ProtoMessage()
func (*CompleteCitizensRespoonse) ProtoReflect ¶
func (x *CompleteCitizensRespoonse) ProtoReflect() protoreflect.Message
func (*CompleteCitizensRespoonse) Reset ¶
func (x *CompleteCitizensRespoonse) Reset()
func (*CompleteCitizensRespoonse) String ¶
func (x *CompleteCitizensRespoonse) String() string
func (*CompleteCitizensRespoonse) Validate ¶
func (m *CompleteCitizensRespoonse) Validate() error
Validate checks the field values on CompleteCitizensRespoonse 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 (*CompleteCitizensRespoonse) ValidateAll ¶
func (m *CompleteCitizensRespoonse) ValidateAll() error
ValidateAll checks the field values on CompleteCitizensRespoonse 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 CompleteCitizensRespoonseMultiError, or nil if none found.
type CompleteCitizensRespoonseMultiError ¶
type CompleteCitizensRespoonseMultiError []error
CompleteCitizensRespoonseMultiError is an error wrapping multiple validation errors returned by CompleteCitizensRespoonse.ValidateAll() if the designated constraints aren't met.
func (CompleteCitizensRespoonseMultiError) AllErrors ¶
func (m CompleteCitizensRespoonseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CompleteCitizensRespoonseMultiError) Error ¶
func (m CompleteCitizensRespoonseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CompleteCitizensRespoonseValidationError ¶
type CompleteCitizensRespoonseValidationError struct {
// contains filtered or unexported fields
}
CompleteCitizensRespoonseValidationError is the validation error returned by CompleteCitizensRespoonse.Validate if the designated constraints aren't met.
func (CompleteCitizensRespoonseValidationError) Cause ¶
func (e CompleteCitizensRespoonseValidationError) Cause() error
Cause function returns cause value.
func (CompleteCitizensRespoonseValidationError) Error ¶
func (e CompleteCitizensRespoonseValidationError) Error() string
Error satisfies the builtin error interface
func (CompleteCitizensRespoonseValidationError) ErrorName ¶
func (e CompleteCitizensRespoonseValidationError) ErrorName() string
ErrorName returns error name.
func (CompleteCitizensRespoonseValidationError) Field ¶
func (e CompleteCitizensRespoonseValidationError) Field() string
Field function returns field value.
func (CompleteCitizensRespoonseValidationError) Key ¶
func (e CompleteCitizensRespoonseValidationError) Key() bool
Key function returns key value.
func (CompleteCitizensRespoonseValidationError) Reason ¶
func (e CompleteCitizensRespoonseValidationError) Reason() string
Reason function returns reason value.
type CompleteDocumentCategoriesRequest ¶
type CompleteDocumentCategoriesRequest struct { Search string `protobuf:"bytes,1,opt,name=search,proto3" json:"search,omitempty"` // contains filtered or unexported fields }
func (*CompleteDocumentCategoriesRequest) Descriptor
deprecated
func (*CompleteDocumentCategoriesRequest) Descriptor() ([]byte, []int)
Deprecated: Use CompleteDocumentCategoriesRequest.ProtoReflect.Descriptor instead.
func (*CompleteDocumentCategoriesRequest) GetSearch ¶
func (x *CompleteDocumentCategoriesRequest) GetSearch() string
func (*CompleteDocumentCategoriesRequest) ProtoMessage ¶
func (*CompleteDocumentCategoriesRequest) ProtoMessage()
func (*CompleteDocumentCategoriesRequest) ProtoReflect ¶
func (x *CompleteDocumentCategoriesRequest) ProtoReflect() protoreflect.Message
func (*CompleteDocumentCategoriesRequest) Reset ¶
func (x *CompleteDocumentCategoriesRequest) Reset()
func (*CompleteDocumentCategoriesRequest) String ¶
func (x *CompleteDocumentCategoriesRequest) String() string
func (*CompleteDocumentCategoriesRequest) Validate ¶
func (m *CompleteDocumentCategoriesRequest) Validate() error
Validate checks the field values on CompleteDocumentCategoriesRequest 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 (*CompleteDocumentCategoriesRequest) ValidateAll ¶
func (m *CompleteDocumentCategoriesRequest) ValidateAll() error
ValidateAll checks the field values on CompleteDocumentCategoriesRequest 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 CompleteDocumentCategoriesRequestMultiError, or nil if none found.
type CompleteDocumentCategoriesRequestMultiError ¶
type CompleteDocumentCategoriesRequestMultiError []error
CompleteDocumentCategoriesRequestMultiError is an error wrapping multiple validation errors returned by CompleteDocumentCategoriesRequest.ValidateAll() if the designated constraints aren't met.
func (CompleteDocumentCategoriesRequestMultiError) AllErrors ¶
func (m CompleteDocumentCategoriesRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CompleteDocumentCategoriesRequestMultiError) Error ¶
func (m CompleteDocumentCategoriesRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CompleteDocumentCategoriesRequestValidationError ¶
type CompleteDocumentCategoriesRequestValidationError struct {
// contains filtered or unexported fields
}
CompleteDocumentCategoriesRequestValidationError is the validation error returned by CompleteDocumentCategoriesRequest.Validate if the designated constraints aren't met.
func (CompleteDocumentCategoriesRequestValidationError) Cause ¶
func (e CompleteDocumentCategoriesRequestValidationError) Cause() error
Cause function returns cause value.
func (CompleteDocumentCategoriesRequestValidationError) Error ¶
func (e CompleteDocumentCategoriesRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CompleteDocumentCategoriesRequestValidationError) ErrorName ¶
func (e CompleteDocumentCategoriesRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CompleteDocumentCategoriesRequestValidationError) Field ¶
func (e CompleteDocumentCategoriesRequestValidationError) Field() string
Field function returns field value.
func (CompleteDocumentCategoriesRequestValidationError) Key ¶
func (e CompleteDocumentCategoriesRequestValidationError) Key() bool
Key function returns key value.
func (CompleteDocumentCategoriesRequestValidationError) Reason ¶
func (e CompleteDocumentCategoriesRequestValidationError) Reason() string
Reason function returns reason value.
type CompleteDocumentCategoriesResponse ¶
type CompleteDocumentCategoriesResponse struct { Categories []*documents.DocumentCategory `protobuf:"bytes,1,rep,name=categories,proto3" json:"categories,omitempty"` // contains filtered or unexported fields }
func (*CompleteDocumentCategoriesResponse) Descriptor
deprecated
func (*CompleteDocumentCategoriesResponse) Descriptor() ([]byte, []int)
Deprecated: Use CompleteDocumentCategoriesResponse.ProtoReflect.Descriptor instead.
func (*CompleteDocumentCategoriesResponse) GetCategories ¶
func (x *CompleteDocumentCategoriesResponse) GetCategories() []*documents.DocumentCategory
func (*CompleteDocumentCategoriesResponse) ProtoMessage ¶
func (*CompleteDocumentCategoriesResponse) ProtoMessage()
func (*CompleteDocumentCategoriesResponse) ProtoReflect ¶
func (x *CompleteDocumentCategoriesResponse) ProtoReflect() protoreflect.Message
func (*CompleteDocumentCategoriesResponse) Reset ¶
func (x *CompleteDocumentCategoriesResponse) Reset()
func (*CompleteDocumentCategoriesResponse) String ¶
func (x *CompleteDocumentCategoriesResponse) String() string
func (*CompleteDocumentCategoriesResponse) Validate ¶
func (m *CompleteDocumentCategoriesResponse) Validate() error
Validate checks the field values on CompleteDocumentCategoriesResponse 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 (*CompleteDocumentCategoriesResponse) ValidateAll ¶
func (m *CompleteDocumentCategoriesResponse) ValidateAll() error
ValidateAll checks the field values on CompleteDocumentCategoriesResponse 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 CompleteDocumentCategoriesResponseMultiError, or nil if none found.
type CompleteDocumentCategoriesResponseMultiError ¶
type CompleteDocumentCategoriesResponseMultiError []error
CompleteDocumentCategoriesResponseMultiError is an error wrapping multiple validation errors returned by CompleteDocumentCategoriesResponse.ValidateAll() if the designated constraints aren't met.
func (CompleteDocumentCategoriesResponseMultiError) AllErrors ¶
func (m CompleteDocumentCategoriesResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CompleteDocumentCategoriesResponseMultiError) Error ¶
func (m CompleteDocumentCategoriesResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CompleteDocumentCategoriesResponseValidationError ¶
type CompleteDocumentCategoriesResponseValidationError struct {
// contains filtered or unexported fields
}
CompleteDocumentCategoriesResponseValidationError is the validation error returned by CompleteDocumentCategoriesResponse.Validate if the designated constraints aren't met.
func (CompleteDocumentCategoriesResponseValidationError) Cause ¶
func (e CompleteDocumentCategoriesResponseValidationError) Cause() error
Cause function returns cause value.
func (CompleteDocumentCategoriesResponseValidationError) Error ¶
func (e CompleteDocumentCategoriesResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CompleteDocumentCategoriesResponseValidationError) ErrorName ¶
func (e CompleteDocumentCategoriesResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CompleteDocumentCategoriesResponseValidationError) Field ¶
func (e CompleteDocumentCategoriesResponseValidationError) Field() string
Field function returns field value.
func (CompleteDocumentCategoriesResponseValidationError) Key ¶
func (e CompleteDocumentCategoriesResponseValidationError) Key() bool
Key function returns key value.
func (CompleteDocumentCategoriesResponseValidationError) Reason ¶
func (e CompleteDocumentCategoriesResponseValidationError) Reason() string
Reason function returns reason value.
type CompleteJobsRequest ¶
type CompleteJobsRequest struct { Search *string `protobuf:"bytes,1,opt,name=search,proto3,oneof" json:"search,omitempty"` ExactMatch *bool `protobuf:"varint,2,opt,name=exact_match,json=exactMatch,proto3,oneof" json:"exact_match,omitempty"` CurrentJob *bool `protobuf:"varint,3,opt,name=current_job,json=currentJob,proto3,oneof" json:"current_job,omitempty"` // contains filtered or unexported fields }
func (*CompleteJobsRequest) Descriptor
deprecated
func (*CompleteJobsRequest) Descriptor() ([]byte, []int)
Deprecated: Use CompleteJobsRequest.ProtoReflect.Descriptor instead.
func (*CompleteJobsRequest) GetCurrentJob ¶
func (x *CompleteJobsRequest) GetCurrentJob() bool
func (*CompleteJobsRequest) GetExactMatch ¶
func (x *CompleteJobsRequest) GetExactMatch() bool
func (*CompleteJobsRequest) GetSearch ¶
func (x *CompleteJobsRequest) GetSearch() string
func (*CompleteJobsRequest) ProtoMessage ¶
func (*CompleteJobsRequest) ProtoMessage()
func (*CompleteJobsRequest) ProtoReflect ¶
func (x *CompleteJobsRequest) ProtoReflect() protoreflect.Message
func (*CompleteJobsRequest) Reset ¶
func (x *CompleteJobsRequest) Reset()
func (*CompleteJobsRequest) String ¶
func (x *CompleteJobsRequest) String() string
func (*CompleteJobsRequest) Validate ¶
func (m *CompleteJobsRequest) Validate() error
Validate checks the field values on CompleteJobsRequest 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 (*CompleteJobsRequest) ValidateAll ¶
func (m *CompleteJobsRequest) ValidateAll() error
ValidateAll checks the field values on CompleteJobsRequest 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 CompleteJobsRequestMultiError, or nil if none found.
type CompleteJobsRequestMultiError ¶
type CompleteJobsRequestMultiError []error
CompleteJobsRequestMultiError is an error wrapping multiple validation errors returned by CompleteJobsRequest.ValidateAll() if the designated constraints aren't met.
func (CompleteJobsRequestMultiError) AllErrors ¶
func (m CompleteJobsRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CompleteJobsRequestMultiError) Error ¶
func (m CompleteJobsRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CompleteJobsRequestValidationError ¶
type CompleteJobsRequestValidationError struct {
// contains filtered or unexported fields
}
CompleteJobsRequestValidationError is the validation error returned by CompleteJobsRequest.Validate if the designated constraints aren't met.
func (CompleteJobsRequestValidationError) Cause ¶
func (e CompleteJobsRequestValidationError) Cause() error
Cause function returns cause value.
func (CompleteJobsRequestValidationError) Error ¶
func (e CompleteJobsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CompleteJobsRequestValidationError) ErrorName ¶
func (e CompleteJobsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CompleteJobsRequestValidationError) Field ¶
func (e CompleteJobsRequestValidationError) Field() string
Field function returns field value.
func (CompleteJobsRequestValidationError) Key ¶
func (e CompleteJobsRequestValidationError) Key() bool
Key function returns key value.
func (CompleteJobsRequestValidationError) Reason ¶
func (e CompleteJobsRequestValidationError) Reason() string
Reason function returns reason value.
type CompleteJobsResponse ¶
type CompleteJobsResponse struct { Jobs []*jobs.Job `protobuf:"bytes,1,rep,name=jobs,proto3" json:"jobs,omitempty"` // contains filtered or unexported fields }
func (*CompleteJobsResponse) Descriptor
deprecated
func (*CompleteJobsResponse) Descriptor() ([]byte, []int)
Deprecated: Use CompleteJobsResponse.ProtoReflect.Descriptor instead.
func (*CompleteJobsResponse) GetJobs ¶
func (x *CompleteJobsResponse) GetJobs() []*jobs.Job
func (*CompleteJobsResponse) ProtoMessage ¶
func (*CompleteJobsResponse) ProtoMessage()
func (*CompleteJobsResponse) ProtoReflect ¶
func (x *CompleteJobsResponse) ProtoReflect() protoreflect.Message
func (*CompleteJobsResponse) Reset ¶
func (x *CompleteJobsResponse) Reset()
func (*CompleteJobsResponse) String ¶
func (x *CompleteJobsResponse) String() string
func (*CompleteJobsResponse) Validate ¶
func (m *CompleteJobsResponse) Validate() error
Validate checks the field values on CompleteJobsResponse 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 (*CompleteJobsResponse) ValidateAll ¶
func (m *CompleteJobsResponse) ValidateAll() error
ValidateAll checks the field values on CompleteJobsResponse 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 CompleteJobsResponseMultiError, or nil if none found.
type CompleteJobsResponseMultiError ¶
type CompleteJobsResponseMultiError []error
CompleteJobsResponseMultiError is an error wrapping multiple validation errors returned by CompleteJobsResponse.ValidateAll() if the designated constraints aren't met.
func (CompleteJobsResponseMultiError) AllErrors ¶
func (m CompleteJobsResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CompleteJobsResponseMultiError) Error ¶
func (m CompleteJobsResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CompleteJobsResponseValidationError ¶
type CompleteJobsResponseValidationError struct {
// contains filtered or unexported fields
}
CompleteJobsResponseValidationError is the validation error returned by CompleteJobsResponse.Validate if the designated constraints aren't met.
func (CompleteJobsResponseValidationError) Cause ¶
func (e CompleteJobsResponseValidationError) Cause() error
Cause function returns cause value.
func (CompleteJobsResponseValidationError) Error ¶
func (e CompleteJobsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CompleteJobsResponseValidationError) ErrorName ¶
func (e CompleteJobsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CompleteJobsResponseValidationError) Field ¶
func (e CompleteJobsResponseValidationError) Field() string
Field function returns field value.
func (CompleteJobsResponseValidationError) Key ¶
func (e CompleteJobsResponseValidationError) Key() bool
Key function returns key value.
func (CompleteJobsResponseValidationError) Reason ¶
func (e CompleteJobsResponseValidationError) Reason() string
Reason function returns reason value.
type CompletorServiceClient ¶
type CompletorServiceClient interface { // @perm CompleteCitizens(ctx context.Context, in *CompleteCitizensRequest, opts ...grpc.CallOption) (*CompleteCitizensRespoonse, error) // @perm CompleteJobs(ctx context.Context, in *CompleteJobsRequest, opts ...grpc.CallOption) (*CompleteJobsResponse, error) // @perm: Attrs=Jobs/JobList CompleteDocumentCategories(ctx context.Context, in *CompleteDocumentCategoriesRequest, opts ...grpc.CallOption) (*CompleteDocumentCategoriesResponse, error) }
CompletorServiceClient is the client API for CompletorService 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 NewCompletorServiceClient ¶
func NewCompletorServiceClient(cc grpc.ClientConnInterface) CompletorServiceClient
func NewTestCompletorServiceClient ¶
func NewTestCompletorServiceClient(srv CompletorServiceServer) (CompletorServiceClient, context.Context, context.CancelFunc)
type CompletorServiceServer ¶
type CompletorServiceServer interface { // @perm CompleteCitizens(context.Context, *CompleteCitizensRequest) (*CompleteCitizensRespoonse, error) // @perm CompleteJobs(context.Context, *CompleteJobsRequest) (*CompleteJobsResponse, error) // @perm: Attrs=Jobs/JobList CompleteDocumentCategories(context.Context, *CompleteDocumentCategoriesRequest) (*CompleteDocumentCategoriesResponse, error) // contains filtered or unexported methods }
CompletorServiceServer is the server API for CompletorService service. All implementations must embed UnimplementedCompletorServiceServer for forward compatibility
type Server ¶
type Server struct { CompletorServiceServer // contains filtered or unexported fields }
func NewServer ¶
func NewServer(db *sql.DB, p perms.Permissions, data *mstlystcdata.Cache) *Server
func (*Server) CompleteCitizens ¶
func (s *Server) CompleteCitizens(ctx context.Context, req *CompleteCitizensRequest) (*CompleteCitizensRespoonse, error)
func (*Server) CompleteDocumentCategories ¶
func (s *Server) CompleteDocumentCategories(ctx context.Context, req *CompleteDocumentCategoriesRequest) (*CompleteDocumentCategoriesResponse, error)
func (*Server) CompleteJobs ¶
func (s *Server) CompleteJobs(ctx context.Context, req *CompleteJobsRequest) (*CompleteJobsResponse, error)
type UnimplementedCompletorServiceServer ¶
type UnimplementedCompletorServiceServer struct { }
UnimplementedCompletorServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedCompletorServiceServer) CompleteCitizens ¶
func (UnimplementedCompletorServiceServer) CompleteCitizens(context.Context, *CompleteCitizensRequest) (*CompleteCitizensRespoonse, error)
func (UnimplementedCompletorServiceServer) CompleteDocumentCategories ¶
func (UnimplementedCompletorServiceServer) CompleteDocumentCategories(context.Context, *CompleteDocumentCategoriesRequest) (*CompleteDocumentCategoriesResponse, error)
func (UnimplementedCompletorServiceServer) CompleteJobs ¶
func (UnimplementedCompletorServiceServer) CompleteJobs(context.Context, *CompleteJobsRequest) (*CompleteJobsResponse, error)
type UnsafeCompletorServiceServer ¶
type UnsafeCompletorServiceServer interface {
// contains filtered or unexported methods
}
UnsafeCompletorServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CompletorServiceServer will result in compilation errors.