Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterCompletorServiceServer(s grpc.ServiceRegistrar, srv CompletorServiceServer)
- 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 (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.Category
- 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() []*users.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 ListLawBooksRequest
- func (*ListLawBooksRequest) Descriptor() ([]byte, []int)deprecated
- func (*ListLawBooksRequest) ProtoMessage()
- func (x *ListLawBooksRequest) ProtoReflect() protoreflect.Message
- func (x *ListLawBooksRequest) Reset()
- 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 (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) 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) 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 ( CompletorServicePerm perms.Category = "CompletorService" CompletorServiceCompleteCitizensPerm perms.Name = "CompleteCitizens" CompletorServiceCompleteDocumentCategoriesPerm perms.Name = "CompleteDocumentCategories" CompletorServiceCompleteDocumentCategoriesJobsPermField perms.Key = "Jobs" CompletorServiceCompleteJobsPerm perms.Name = "CompleteJobs" )
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" )
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, }, }, 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 (
ErrFailedSearch = status.Error(codes.Internal, "errors.CompletorService.ErrFailedSearch")
)
var File_services_completor_completor_proto protoreflect.FileDescriptor
var PermsRemap = map[string]string{
"CompletorService/ListLawBooks": "Any",
}
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"` 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 ¶ added in v0.8.0
func (x *CompleteCitizensRequest) GetCurrentJob() bool
func (*CompleteCitizensRequest) GetOnDuty ¶ added in v0.8.0
func (x *CompleteCitizensRequest) GetOnDuty() bool
func (*CompleteCitizensRequest) GetSearch ¶
func (x *CompleteCitizensRequest) GetSearch() string
func (*CompleteCitizensRequest) GetUserId ¶ added in v0.8.1
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) 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.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) 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 []*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) 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) // @perm: Name=Any ListLawBooks(ctx context.Context, in *ListLawBooksRequest, opts ...grpc.CallOption) (*ListLawBooksResponse, 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) // @perm: Name=Any ListLawBooks(context.Context, *ListLawBooksRequest) (*ListLawBooksResponse, error) // contains filtered or unexported methods }
CompletorServiceServer is the server API for CompletorService service. All implementations must embed UnimplementedCompletorServiceServer for forward compatibility
type ListLawBooksRequest ¶ added in v0.7.0
type ListLawBooksRequest struct {
// contains filtered or unexported fields
}
func (*ListLawBooksRequest) Descriptor
deprecated
added in
v0.7.0
func (*ListLawBooksRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListLawBooksRequest.ProtoReflect.Descriptor instead.
func (*ListLawBooksRequest) ProtoMessage ¶ added in v0.7.0
func (*ListLawBooksRequest) ProtoMessage()
func (*ListLawBooksRequest) ProtoReflect ¶ added in v0.7.0
func (x *ListLawBooksRequest) ProtoReflect() protoreflect.Message
func (*ListLawBooksRequest) Reset ¶ added in v0.7.0
func (x *ListLawBooksRequest) Reset()
func (*ListLawBooksRequest) String ¶ added in v0.7.0
func (x *ListLawBooksRequest) String() string
func (*ListLawBooksRequest) Validate ¶ added in v0.7.0
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 ¶ added in v0.7.0
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 ¶ added in v0.7.0
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 ¶ added in v0.7.0
func (m ListLawBooksRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListLawBooksRequestMultiError) Error ¶ added in v0.7.0
func (m ListLawBooksRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListLawBooksRequestValidationError ¶ added in v0.7.0
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 ¶ added in v0.7.0
func (e ListLawBooksRequestValidationError) Cause() error
Cause function returns cause value.
func (ListLawBooksRequestValidationError) Error ¶ added in v0.7.0
func (e ListLawBooksRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListLawBooksRequestValidationError) ErrorName ¶ added in v0.7.0
func (e ListLawBooksRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListLawBooksRequestValidationError) Field ¶ added in v0.7.0
func (e ListLawBooksRequestValidationError) Field() string
Field function returns field value.
func (ListLawBooksRequestValidationError) Key ¶ added in v0.7.0
func (e ListLawBooksRequestValidationError) Key() bool
Key function returns key value.
func (ListLawBooksRequestValidationError) Reason ¶ added in v0.7.0
func (e ListLawBooksRequestValidationError) Reason() string
Reason function returns reason value.
type ListLawBooksResponse ¶ added in v0.7.0
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
added in
v0.7.0
func (*ListLawBooksResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListLawBooksResponse.ProtoReflect.Descriptor instead.
func (*ListLawBooksResponse) GetBooks ¶ added in v0.7.0
func (x *ListLawBooksResponse) GetBooks() []*laws.LawBook
func (*ListLawBooksResponse) ProtoMessage ¶ added in v0.7.0
func (*ListLawBooksResponse) ProtoMessage()
func (*ListLawBooksResponse) ProtoReflect ¶ added in v0.7.0
func (x *ListLawBooksResponse) ProtoReflect() protoreflect.Message
func (*ListLawBooksResponse) Reset ¶ added in v0.7.0
func (x *ListLawBooksResponse) Reset()
func (*ListLawBooksResponse) String ¶ added in v0.7.0
func (x *ListLawBooksResponse) String() string
func (*ListLawBooksResponse) Validate ¶ added in v0.7.0
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 ¶ added in v0.7.0
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 ¶ added in v0.7.0
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 ¶ added in v0.7.0
func (m ListLawBooksResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListLawBooksResponseMultiError) Error ¶ added in v0.7.0
func (m ListLawBooksResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListLawBooksResponseValidationError ¶ added in v0.7.0
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 ¶ added in v0.7.0
func (e ListLawBooksResponseValidationError) Cause() error
Cause function returns cause value.
func (ListLawBooksResponseValidationError) Error ¶ added in v0.7.0
func (e ListLawBooksResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListLawBooksResponseValidationError) ErrorName ¶ added in v0.7.0
func (e ListLawBooksResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListLawBooksResponseValidationError) Field ¶ added in v0.7.0
func (e ListLawBooksResponseValidationError) Field() string
Field function returns field value.
func (ListLawBooksResponseValidationError) Key ¶ added in v0.7.0
func (e ListLawBooksResponseValidationError) Key() bool
Key function returns key value.
func (ListLawBooksResponseValidationError) Reason ¶ added in v0.7.0
func (e ListLawBooksResponseValidationError) Reason() string
Reason function returns reason value.
type Params ¶ added in v0.8.0
type Params struct { fx.In DB *sql.DB Perms perms.Permissions Data *mstlystcdata.Cache Tracker *tracker.Tracker Enricher *mstlystcdata.Enricher }
type Server ¶
type Server struct { CompletorServiceServer // contains filtered or unexported fields }
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 ¶ added in v0.7.0
func (*Server) ListLawBooks ¶ added in v0.7.0
func (s *Server) ListLawBooks(ctx context.Context, req *ListLawBooksRequest) (*ListLawBooksResponse, error)
func (*Server) RegisterServer ¶ added in v0.8.0
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)
func (UnimplementedCompletorServiceServer) ListLawBooks ¶ added in v0.7.0
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.