Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterCompletorServiceServer(s grpc.ServiceRegistrar, srv CompletorServiceServer)
- type CompleteCitizenAttributesRequest
- func (*CompleteCitizenAttributesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CompleteCitizenAttributesRequest) GetSearch() string
- func (*CompleteCitizenAttributesRequest) ProtoMessage()
- func (x *CompleteCitizenAttributesRequest) ProtoReflect() protoreflect.Message
- func (x *CompleteCitizenAttributesRequest) Reset()
- func (m *CompleteCitizenAttributesRequest) Sanitize() error
- func (x *CompleteCitizenAttributesRequest) String() string
- func (m *CompleteCitizenAttributesRequest) Validate() error
- func (m *CompleteCitizenAttributesRequest) ValidateAll() error
- type CompleteCitizenAttributesRequestMultiError
- type CompleteCitizenAttributesRequestValidationError
- func (e CompleteCitizenAttributesRequestValidationError) Cause() error
- func (e CompleteCitizenAttributesRequestValidationError) Error() string
- func (e CompleteCitizenAttributesRequestValidationError) ErrorName() string
- func (e CompleteCitizenAttributesRequestValidationError) Field() string
- func (e CompleteCitizenAttributesRequestValidationError) Key() bool
- func (e CompleteCitizenAttributesRequestValidationError) Reason() string
- type CompleteCitizenAttributesResponse
- func (*CompleteCitizenAttributesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CompleteCitizenAttributesResponse) GetAttributes() []*users.CitizenAttribute
- func (*CompleteCitizenAttributesResponse) ProtoMessage()
- func (x *CompleteCitizenAttributesResponse) ProtoReflect() protoreflect.Message
- func (x *CompleteCitizenAttributesResponse) Reset()
- func (m *CompleteCitizenAttributesResponse) Sanitize() error
- func (x *CompleteCitizenAttributesResponse) String() string
- func (m *CompleteCitizenAttributesResponse) Validate() error
- func (m *CompleteCitizenAttributesResponse) ValidateAll() error
- type CompleteCitizenAttributesResponseMultiError
- type CompleteCitizenAttributesResponseValidationError
- func (e CompleteCitizenAttributesResponseValidationError) Cause() error
- func (e CompleteCitizenAttributesResponseValidationError) Error() string
- func (e CompleteCitizenAttributesResponseValidationError) ErrorName() string
- func (e CompleteCitizenAttributesResponseValidationError) Field() string
- func (e CompleteCitizenAttributesResponseValidationError) Key() bool
- func (e CompleteCitizenAttributesResponseValidationError) Reason() string
- type CompleteCitizensRequest
- func (*CompleteCitizensRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CompleteCitizensRequest) GetCurrentJob() bool
- func (x *CompleteCitizensRequest) GetOnDuty() bool
- func (x *CompleteCitizensRequest) GetSearch() string
- func (x *CompleteCitizensRequest) GetUserId() int32
- func (*CompleteCitizensRequest) ProtoMessage()
- func (x *CompleteCitizensRequest) ProtoReflect() protoreflect.Message
- func (x *CompleteCitizensRequest) Reset()
- func (m *CompleteCitizensRequest) Sanitize() error
- 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 (m *CompleteCitizensRespoonse) Sanitize() error
- 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 (m *CompleteDocumentCategoriesRequest) Sanitize() error
- 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.Category
- func (*CompleteDocumentCategoriesResponse) ProtoMessage()
- func (x *CompleteDocumentCategoriesResponse) ProtoReflect() protoreflect.Message
- func (x *CompleteDocumentCategoriesResponse) Reset()
- func (m *CompleteDocumentCategoriesResponse) Sanitize() error
- 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 (m *CompleteJobsRequest) Sanitize() error
- 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() []*users.Job
- func (*CompleteJobsResponse) ProtoMessage()
- func (x *CompleteJobsResponse) ProtoReflect() protoreflect.Message
- func (x *CompleteJobsResponse) Reset()
- func (m *CompleteJobsResponse) Sanitize() error
- 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 ListLawBooksRequest
- func (*ListLawBooksRequest) Descriptor() ([]byte, []int)deprecated
- func (*ListLawBooksRequest) ProtoMessage()
- func (x *ListLawBooksRequest) ProtoReflect() protoreflect.Message
- func (x *ListLawBooksRequest) Reset()
- func (m *ListLawBooksRequest) Sanitize() error
- func (x *ListLawBooksRequest) String() string
- func (m *ListLawBooksRequest) Validate() error
- func (m *ListLawBooksRequest) ValidateAll() error
- type ListLawBooksRequestMultiError
- type ListLawBooksRequestValidationError
- func (e ListLawBooksRequestValidationError) Cause() error
- func (e ListLawBooksRequestValidationError) Error() string
- func (e ListLawBooksRequestValidationError) ErrorName() string
- func (e ListLawBooksRequestValidationError) Field() string
- func (e ListLawBooksRequestValidationError) Key() bool
- func (e ListLawBooksRequestValidationError) Reason() string
- type ListLawBooksResponse
- func (*ListLawBooksResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListLawBooksResponse) GetBooks() []*laws.LawBook
- func (*ListLawBooksResponse) ProtoMessage()
- func (x *ListLawBooksResponse) ProtoReflect() protoreflect.Message
- func (x *ListLawBooksResponse) Reset()
- func (m *ListLawBooksResponse) Sanitize() error
- func (x *ListLawBooksResponse) String() string
- func (m *ListLawBooksResponse) Validate() error
- func (m *ListLawBooksResponse) ValidateAll() error
- type ListLawBooksResponseMultiError
- type ListLawBooksResponseValidationError
- func (e ListLawBooksResponseValidationError) Cause() error
- func (e ListLawBooksResponseValidationError) Error() string
- func (e ListLawBooksResponseValidationError) ErrorName() string
- func (e ListLawBooksResponseValidationError) Field() string
- func (e ListLawBooksResponseValidationError) Key() bool
- func (e ListLawBooksResponseValidationError) Reason() string
- type Params
- type Server
- func (s *Server) CompleteCitizenAttributes(ctx context.Context, req *CompleteCitizenAttributesRequest) (*CompleteCitizenAttributesResponse, error)
- 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)
- func (s *Server) GetPermsRemap() map[string]string
- func (s *Server) ListLawBooks(ctx context.Context, req *ListLawBooksRequest) (*ListLawBooksResponse, error)
- func (s *Server) RegisterServer(srv *grpc.Server)
- type UnimplementedCompletorServiceServer
- func (UnimplementedCompletorServiceServer) CompleteCitizenAttributes(context.Context, *CompleteCitizenAttributesRequest) (*CompleteCitizenAttributesResponse, error)
- func (UnimplementedCompletorServiceServer) CompleteCitizens(context.Context, *CompleteCitizensRequest) (*CompleteCitizensRespoonse, error)
- func (UnimplementedCompletorServiceServer) CompleteDocumentCategories(context.Context, *CompleteDocumentCategoriesRequest) (*CompleteDocumentCategoriesResponse, error)
- func (UnimplementedCompletorServiceServer) CompleteJobs(context.Context, *CompleteJobsRequest) (*CompleteJobsResponse, error)
- func (UnimplementedCompletorServiceServer) ListLawBooks(context.Context, *ListLawBooksRequest) (*ListLawBooksResponse, error)
- type UnsafeCompletorServiceServer
Constants ¶
const ( CompletorService_CompleteCitizens_FullMethodName = "/services.completor.CompletorService/CompleteCitizens" CompletorService_CompleteJobs_FullMethodName = "/services.completor.CompletorService/CompleteJobs" CompletorService_CompleteDocumentCategories_FullMethodName = "/services.completor.CompletorService/CompleteDocumentCategories" CompletorService_ListLawBooks_FullMethodName = "/services.completor.CompletorService/ListLawBooks" CompletorService_CompleteCitizenAttributes_FullMethodName = "/services.completor.CompletorService/CompleteCitizenAttributes" )
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, }, { MethodName: "ListLawBooks", Handler: _CompletorService_ListLawBooks_Handler, }, { MethodName: "CompleteCitizenAttributes", Handler: _CompletorService_CompleteCitizenAttributes_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 File_services_completor_completor_proto protoreflect.FileDescriptor
var PermsRemap = map[string]string{
"CompletorService/CompleteJobs": "Any",
"CompletorService/ListLawBooks": "Any",
}
Functions ¶
func RegisterCompletorServiceServer ¶
func RegisterCompletorServiceServer(s grpc.ServiceRegistrar, srv CompletorServiceServer)
Types ¶
type CompleteCitizenAttributesRequest ¶
type CompleteCitizenAttributesRequest struct { Search string `protobuf:"bytes,1,opt,name=search,proto3" json:"search,omitempty"` // contains filtered or unexported fields }
func (*CompleteCitizenAttributesRequest) Descriptor
deprecated
func (*CompleteCitizenAttributesRequest) Descriptor() ([]byte, []int)
Deprecated: Use CompleteCitizenAttributesRequest.ProtoReflect.Descriptor instead.
func (*CompleteCitizenAttributesRequest) GetSearch ¶
func (x *CompleteCitizenAttributesRequest) GetSearch() string
func (*CompleteCitizenAttributesRequest) ProtoMessage ¶
func (*CompleteCitizenAttributesRequest) ProtoMessage()
func (*CompleteCitizenAttributesRequest) ProtoReflect ¶
func (x *CompleteCitizenAttributesRequest) ProtoReflect() protoreflect.Message
func (*CompleteCitizenAttributesRequest) Reset ¶
func (x *CompleteCitizenAttributesRequest) Reset()
func (*CompleteCitizenAttributesRequest) Sanitize ¶ added in v0.9.4
func (m *CompleteCitizenAttributesRequest) Sanitize() error
func (*CompleteCitizenAttributesRequest) String ¶
func (x *CompleteCitizenAttributesRequest) String() string
func (*CompleteCitizenAttributesRequest) Validate ¶
func (m *CompleteCitizenAttributesRequest) Validate() error
Validate checks the field values on CompleteCitizenAttributesRequest 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 (*CompleteCitizenAttributesRequest) ValidateAll ¶
func (m *CompleteCitizenAttributesRequest) ValidateAll() error
ValidateAll checks the field values on CompleteCitizenAttributesRequest 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 CompleteCitizenAttributesRequestMultiError, or nil if none found.
type CompleteCitizenAttributesRequestMultiError ¶
type CompleteCitizenAttributesRequestMultiError []error
CompleteCitizenAttributesRequestMultiError is an error wrapping multiple validation errors returned by CompleteCitizenAttributesRequest.ValidateAll() if the designated constraints aren't met.
func (CompleteCitizenAttributesRequestMultiError) AllErrors ¶
func (m CompleteCitizenAttributesRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CompleteCitizenAttributesRequestMultiError) Error ¶
func (m CompleteCitizenAttributesRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CompleteCitizenAttributesRequestValidationError ¶
type CompleteCitizenAttributesRequestValidationError struct {
// contains filtered or unexported fields
}
CompleteCitizenAttributesRequestValidationError is the validation error returned by CompleteCitizenAttributesRequest.Validate if the designated constraints aren't met.
func (CompleteCitizenAttributesRequestValidationError) Cause ¶
func (e CompleteCitizenAttributesRequestValidationError) Cause() error
Cause function returns cause value.
func (CompleteCitizenAttributesRequestValidationError) Error ¶
func (e CompleteCitizenAttributesRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CompleteCitizenAttributesRequestValidationError) ErrorName ¶
func (e CompleteCitizenAttributesRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CompleteCitizenAttributesRequestValidationError) Field ¶
func (e CompleteCitizenAttributesRequestValidationError) Field() string
Field function returns field value.
func (CompleteCitizenAttributesRequestValidationError) Key ¶
func (e CompleteCitizenAttributesRequestValidationError) Key() bool
Key function returns key value.
func (CompleteCitizenAttributesRequestValidationError) Reason ¶
func (e CompleteCitizenAttributesRequestValidationError) Reason() string
Reason function returns reason value.
type CompleteCitizenAttributesResponse ¶
type CompleteCitizenAttributesResponse struct { Attributes []*users.CitizenAttribute `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"` // contains filtered or unexported fields }
func (*CompleteCitizenAttributesResponse) Descriptor
deprecated
func (*CompleteCitizenAttributesResponse) Descriptor() ([]byte, []int)
Deprecated: Use CompleteCitizenAttributesResponse.ProtoReflect.Descriptor instead.
func (*CompleteCitizenAttributesResponse) GetAttributes ¶
func (x *CompleteCitizenAttributesResponse) GetAttributes() []*users.CitizenAttribute
func (*CompleteCitizenAttributesResponse) ProtoMessage ¶
func (*CompleteCitizenAttributesResponse) ProtoMessage()
func (*CompleteCitizenAttributesResponse) ProtoReflect ¶
func (x *CompleteCitizenAttributesResponse) ProtoReflect() protoreflect.Message
func (*CompleteCitizenAttributesResponse) Reset ¶
func (x *CompleteCitizenAttributesResponse) Reset()
func (*CompleteCitizenAttributesResponse) Sanitize ¶ added in v0.9.4
func (m *CompleteCitizenAttributesResponse) Sanitize() error
func (*CompleteCitizenAttributesResponse) String ¶
func (x *CompleteCitizenAttributesResponse) String() string
func (*CompleteCitizenAttributesResponse) Validate ¶
func (m *CompleteCitizenAttributesResponse) Validate() error
Validate checks the field values on CompleteCitizenAttributesResponse 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 (*CompleteCitizenAttributesResponse) ValidateAll ¶
func (m *CompleteCitizenAttributesResponse) ValidateAll() error
ValidateAll checks the field values on CompleteCitizenAttributesResponse 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 CompleteCitizenAttributesResponseMultiError, or nil if none found.
type CompleteCitizenAttributesResponseMultiError ¶
type CompleteCitizenAttributesResponseMultiError []error
CompleteCitizenAttributesResponseMultiError is an error wrapping multiple validation errors returned by CompleteCitizenAttributesResponse.ValidateAll() if the designated constraints aren't met.
func (CompleteCitizenAttributesResponseMultiError) AllErrors ¶
func (m CompleteCitizenAttributesResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CompleteCitizenAttributesResponseMultiError) Error ¶
func (m CompleteCitizenAttributesResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CompleteCitizenAttributesResponseValidationError ¶
type CompleteCitizenAttributesResponseValidationError struct {
// contains filtered or unexported fields
}
CompleteCitizenAttributesResponseValidationError is the validation error returned by CompleteCitizenAttributesResponse.Validate if the designated constraints aren't met.
func (CompleteCitizenAttributesResponseValidationError) Cause ¶
func (e CompleteCitizenAttributesResponseValidationError) Cause() error
Cause function returns cause value.
func (CompleteCitizenAttributesResponseValidationError) Error ¶
func (e CompleteCitizenAttributesResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CompleteCitizenAttributesResponseValidationError) ErrorName ¶
func (e CompleteCitizenAttributesResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CompleteCitizenAttributesResponseValidationError) Field ¶
func (e CompleteCitizenAttributesResponseValidationError) Field() string
Field function returns field value.
func (CompleteCitizenAttributesResponseValidationError) Key ¶
func (e CompleteCitizenAttributesResponseValidationError) Key() bool
Key function returns key value.
func (CompleteCitizenAttributesResponseValidationError) Reason ¶
func (e CompleteCitizenAttributesResponseValidationError) Reason() string
Reason function returns reason value.
type CompleteCitizensRequest ¶
type CompleteCitizensRequest struct { Search string `protobuf:"bytes,1,opt,name=search,proto3" json:"search,omitempty"` CurrentJob *bool `protobuf:"varint,2,opt,name=current_job,json=currentJob,proto3,oneof" json:"current_job,omitempty"` OnDuty *bool `protobuf:"varint,3,opt,name=on_duty,json=onDuty,proto3,oneof" json:"on_duty,omitempty"` UserId *int32 `protobuf:"varint,4,opt,name=user_id,json=userId,proto3,oneof" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*CompleteCitizensRequest) Descriptor
deprecated
func (*CompleteCitizensRequest) Descriptor() ([]byte, []int)
Deprecated: Use CompleteCitizensRequest.ProtoReflect.Descriptor instead.
func (*CompleteCitizensRequest) GetCurrentJob ¶
func (x *CompleteCitizensRequest) GetCurrentJob() bool
func (*CompleteCitizensRequest) GetOnDuty ¶
func (x *CompleteCitizensRequest) GetOnDuty() bool
func (*CompleteCitizensRequest) GetSearch ¶
func (x *CompleteCitizensRequest) GetSearch() string
func (*CompleteCitizensRequest) GetUserId ¶
func (x *CompleteCitizensRequest) GetUserId() int32
func (*CompleteCitizensRequest) ProtoMessage ¶
func (*CompleteCitizensRequest) ProtoMessage()
func (*CompleteCitizensRequest) ProtoReflect ¶
func (x *CompleteCitizensRequest) ProtoReflect() protoreflect.Message
func (*CompleteCitizensRequest) Reset ¶
func (x *CompleteCitizensRequest) Reset()
func (*CompleteCitizensRequest) Sanitize ¶ added in v0.9.4
func (m *CompleteCitizensRequest) Sanitize() error
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) Sanitize ¶ added in v0.9.4
func (m *CompleteCitizensRespoonse) Sanitize() error
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) Sanitize ¶ added in v0.9.4
func (m *CompleteDocumentCategoriesRequest) Sanitize() error
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.Category `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.Category
func (*CompleteDocumentCategoriesResponse) ProtoMessage ¶
func (*CompleteDocumentCategoriesResponse) ProtoMessage()
func (*CompleteDocumentCategoriesResponse) ProtoReflect ¶
func (x *CompleteDocumentCategoriesResponse) ProtoReflect() protoreflect.Message
func (*CompleteDocumentCategoriesResponse) Reset ¶
func (x *CompleteDocumentCategoriesResponse) Reset()
func (*CompleteDocumentCategoriesResponse) Sanitize ¶ added in v0.9.4
func (m *CompleteDocumentCategoriesResponse) Sanitize() error
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) Sanitize ¶ added in v0.9.4
func (m *CompleteJobsRequest) Sanitize() error
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 []*users.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() []*users.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) Sanitize ¶ added in v0.9.4
func (m *CompleteJobsResponse) Sanitize() error
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: Name=Any 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) // @perm: Name=Any ListLawBooks(ctx context.Context, in *ListLawBooksRequest, opts ...grpc.CallOption) (*ListLawBooksResponse, error) // @perm: Attrs=Jobs/JobList CompleteCitizenAttributes(ctx context.Context, in *CompleteCitizenAttributesRequest, opts ...grpc.CallOption) (*CompleteCitizenAttributesResponse, 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: Name=Any CompleteJobs(context.Context, *CompleteJobsRequest) (*CompleteJobsResponse, error) // @perm: Attrs=Jobs/JobList CompleteDocumentCategories(context.Context, *CompleteDocumentCategoriesRequest) (*CompleteDocumentCategoriesResponse, error) // @perm: Name=Any ListLawBooks(context.Context, *ListLawBooksRequest) (*ListLawBooksResponse, error) // @perm: Attrs=Jobs/JobList CompleteCitizenAttributes(context.Context, *CompleteCitizenAttributesRequest) (*CompleteCitizenAttributesResponse, error) // contains filtered or unexported methods }
CompletorServiceServer is the server API for CompletorService service. All implementations must embed UnimplementedCompletorServiceServer for forward compatibility
type ListLawBooksRequest ¶
type ListLawBooksRequest struct {
// contains filtered or unexported fields
}
func (*ListLawBooksRequest) Descriptor
deprecated
func (*ListLawBooksRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListLawBooksRequest.ProtoReflect.Descriptor instead.
func (*ListLawBooksRequest) ProtoMessage ¶
func (*ListLawBooksRequest) ProtoMessage()
func (*ListLawBooksRequest) ProtoReflect ¶
func (x *ListLawBooksRequest) ProtoReflect() protoreflect.Message
func (*ListLawBooksRequest) Reset ¶
func (x *ListLawBooksRequest) Reset()
func (*ListLawBooksRequest) Sanitize ¶ added in v0.9.4
func (m *ListLawBooksRequest) Sanitize() error
func (*ListLawBooksRequest) String ¶
func (x *ListLawBooksRequest) String() string
func (*ListLawBooksRequest) Validate ¶
func (m *ListLawBooksRequest) Validate() error
Validate checks the field values on ListLawBooksRequest 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 (*ListLawBooksRequest) ValidateAll ¶
func (m *ListLawBooksRequest) ValidateAll() error
ValidateAll checks the field values on ListLawBooksRequest 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 ListLawBooksRequestMultiError, or nil if none found.
type ListLawBooksRequestMultiError ¶
type ListLawBooksRequestMultiError []error
ListLawBooksRequestMultiError is an error wrapping multiple validation errors returned by ListLawBooksRequest.ValidateAll() if the designated constraints aren't met.
func (ListLawBooksRequestMultiError) AllErrors ¶
func (m ListLawBooksRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListLawBooksRequestMultiError) Error ¶
func (m ListLawBooksRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListLawBooksRequestValidationError ¶
type ListLawBooksRequestValidationError struct {
// contains filtered or unexported fields
}
ListLawBooksRequestValidationError is the validation error returned by ListLawBooksRequest.Validate if the designated constraints aren't met.
func (ListLawBooksRequestValidationError) Cause ¶
func (e ListLawBooksRequestValidationError) Cause() error
Cause function returns cause value.
func (ListLawBooksRequestValidationError) Error ¶
func (e ListLawBooksRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListLawBooksRequestValidationError) ErrorName ¶
func (e ListLawBooksRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListLawBooksRequestValidationError) Field ¶
func (e ListLawBooksRequestValidationError) Field() string
Field function returns field value.
func (ListLawBooksRequestValidationError) Key ¶
func (e ListLawBooksRequestValidationError) Key() bool
Key function returns key value.
func (ListLawBooksRequestValidationError) Reason ¶
func (e ListLawBooksRequestValidationError) Reason() string
Reason function returns reason value.
type ListLawBooksResponse ¶
type ListLawBooksResponse struct { Books []*laws.LawBook `protobuf:"bytes,1,rep,name=books,proto3" json:"books,omitempty"` // contains filtered or unexported fields }
func (*ListLawBooksResponse) Descriptor
deprecated
func (*ListLawBooksResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListLawBooksResponse.ProtoReflect.Descriptor instead.
func (*ListLawBooksResponse) GetBooks ¶
func (x *ListLawBooksResponse) GetBooks() []*laws.LawBook
func (*ListLawBooksResponse) ProtoMessage ¶
func (*ListLawBooksResponse) ProtoMessage()
func (*ListLawBooksResponse) ProtoReflect ¶
func (x *ListLawBooksResponse) ProtoReflect() protoreflect.Message
func (*ListLawBooksResponse) Reset ¶
func (x *ListLawBooksResponse) Reset()
func (*ListLawBooksResponse) Sanitize ¶ added in v0.9.4
func (m *ListLawBooksResponse) Sanitize() error
func (*ListLawBooksResponse) String ¶
func (x *ListLawBooksResponse) String() string
func (*ListLawBooksResponse) Validate ¶
func (m *ListLawBooksResponse) Validate() error
Validate checks the field values on ListLawBooksResponse 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 (*ListLawBooksResponse) ValidateAll ¶
func (m *ListLawBooksResponse) ValidateAll() error
ValidateAll checks the field values on ListLawBooksResponse 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 ListLawBooksResponseMultiError, or nil if none found.
type ListLawBooksResponseMultiError ¶
type ListLawBooksResponseMultiError []error
ListLawBooksResponseMultiError is an error wrapping multiple validation errors returned by ListLawBooksResponse.ValidateAll() if the designated constraints aren't met.
func (ListLawBooksResponseMultiError) AllErrors ¶
func (m ListLawBooksResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListLawBooksResponseMultiError) Error ¶
func (m ListLawBooksResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListLawBooksResponseValidationError ¶
type ListLawBooksResponseValidationError struct {
// contains filtered or unexported fields
}
ListLawBooksResponseValidationError is the validation error returned by ListLawBooksResponse.Validate if the designated constraints aren't met.
func (ListLawBooksResponseValidationError) Cause ¶
func (e ListLawBooksResponseValidationError) Cause() error
Cause function returns cause value.
func (ListLawBooksResponseValidationError) Error ¶
func (e ListLawBooksResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListLawBooksResponseValidationError) ErrorName ¶
func (e ListLawBooksResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListLawBooksResponseValidationError) Field ¶
func (e ListLawBooksResponseValidationError) Field() string
Field function returns field value.
func (ListLawBooksResponseValidationError) Key ¶
func (e ListLawBooksResponseValidationError) Key() bool
Key function returns key value.
func (ListLawBooksResponseValidationError) Reason ¶
func (e ListLawBooksResponseValidationError) Reason() string
Reason function returns reason value.
type Params ¶
type Params struct { fx.In DB *sql.DB Perms perms.Permissions Data *mstlystcdata.Cache Tracker tracker.ITracker Enricher *mstlystcdata.UserAwareEnricher Config *config.Config }
type Server ¶
type Server struct { CompletorServiceServer // contains filtered or unexported fields }
func (*Server) CompleteCitizenAttributes ¶
func (s *Server) CompleteCitizenAttributes(ctx context.Context, req *CompleteCitizenAttributesRequest) (*CompleteCitizenAttributesResponse, error)
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)
func (*Server) GetPermsRemap ¶
func (*Server) ListLawBooks ¶
func (s *Server) ListLawBooks(ctx context.Context, req *ListLawBooksRequest) (*ListLawBooksResponse, error)
func (*Server) RegisterServer ¶
type UnimplementedCompletorServiceServer ¶
type UnimplementedCompletorServiceServer struct { }
UnimplementedCompletorServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedCompletorServiceServer) CompleteCitizenAttributes ¶
func (UnimplementedCompletorServiceServer) CompleteCitizenAttributes(context.Context, *CompleteCitizenAttributesRequest) (*CompleteCitizenAttributesResponse, error)
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)
func (UnimplementedCompletorServiceServer) ListLawBooks ¶
func (UnimplementedCompletorServiceServer) ListLawBooks(context.Context, *ListLawBooksRequest) (*ListLawBooksResponse, 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.