completor

package
v0.8.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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)

View Source
var (
	ErrFailedSearch = status.Error(codes.Internal, "errors.CompletorService.ErrFailedSearch")
)
View Source
var File_services_completor_completor_proto protoreflect.FileDescriptor
View Source
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

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

Cause function returns cause value.

func (CompleteCitizensRequestValidationError) Error

Error satisfies the builtin error interface

func (CompleteCitizensRequestValidationError) ErrorName

ErrorName returns error name.

func (CompleteCitizensRequestValidationError) Field

Field function returns field value.

func (CompleteCitizensRequestValidationError) Key

Key function returns key value.

func (CompleteCitizensRequestValidationError) Reason

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 (*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

AllErrors returns a list of validation violation errors.

func (CompleteCitizensRespoonseMultiError) Error

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

Cause function returns cause value.

func (CompleteCitizensRespoonseValidationError) Error

Error satisfies the builtin error interface

func (CompleteCitizensRespoonseValidationError) ErrorName

ErrorName returns error name.

func (CompleteCitizensRespoonseValidationError) Field

Field function returns field value.

func (CompleteCitizensRespoonseValidationError) Key

Key function returns key value.

func (CompleteCitizensRespoonseValidationError) Reason

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 (*CompleteDocumentCategoriesRequest) ProtoMessage

func (*CompleteDocumentCategoriesRequest) ProtoMessage()

func (*CompleteDocumentCategoriesRequest) ProtoReflect

func (*CompleteDocumentCategoriesRequest) Reset

func (*CompleteDocumentCategoriesRequest) String

func (*CompleteDocumentCategoriesRequest) Validate

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

AllErrors returns a list of validation violation errors.

func (CompleteDocumentCategoriesRequestMultiError) Error

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

Cause function returns cause value.

func (CompleteDocumentCategoriesRequestValidationError) Error

Error satisfies the builtin error interface

func (CompleteDocumentCategoriesRequestValidationError) ErrorName

ErrorName returns error name.

func (CompleteDocumentCategoriesRequestValidationError) Field

Field function returns field value.

func (CompleteDocumentCategoriesRequestValidationError) Key

Key function returns key value.

func (CompleteDocumentCategoriesRequestValidationError) Reason

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 (*CompleteDocumentCategoriesResponse) ProtoMessage

func (*CompleteDocumentCategoriesResponse) ProtoMessage()

func (*CompleteDocumentCategoriesResponse) ProtoReflect

func (*CompleteDocumentCategoriesResponse) Reset

func (*CompleteDocumentCategoriesResponse) String

func (*CompleteDocumentCategoriesResponse) Validate

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

AllErrors returns a list of validation violation errors.

func (CompleteDocumentCategoriesResponseMultiError) Error

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

Cause function returns cause value.

func (CompleteDocumentCategoriesResponseValidationError) Error

Error satisfies the builtin error interface

func (CompleteDocumentCategoriesResponseValidationError) ErrorName

ErrorName returns error name.

func (CompleteDocumentCategoriesResponseValidationError) Field

Field function returns field value.

func (CompleteDocumentCategoriesResponseValidationError) Key

Key function returns key value.

func (CompleteDocumentCategoriesResponseValidationError) Reason

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

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

Cause function returns cause value.

func (CompleteJobsRequestValidationError) Error

Error satisfies the builtin error interface

func (CompleteJobsRequestValidationError) ErrorName

ErrorName returns error name.

func (CompleteJobsRequestValidationError) Field

Field function returns field value.

func (CompleteJobsRequestValidationError) Key

Key function returns key value.

func (CompleteJobsRequestValidationError) Reason

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

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

Cause function returns cause value.

func (CompleteJobsResponseValidationError) Error

Error satisfies the builtin error interface

func (CompleteJobsResponseValidationError) ErrorName

ErrorName returns error name.

func (CompleteJobsResponseValidationError) Field

Field function returns field value.

func (CompleteJobsResponseValidationError) Key

Key function returns key value.

func (CompleteJobsResponseValidationError) Reason

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.

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

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

Cause function returns cause value.

func (ListLawBooksRequestValidationError) Error added in v0.7.0

Error satisfies the builtin error interface

func (ListLawBooksRequestValidationError) ErrorName added in v0.7.0

ErrorName returns error name.

func (ListLawBooksRequestValidationError) Field added in v0.7.0

Field function returns field value.

func (ListLawBooksRequestValidationError) Key added in v0.7.0

Key function returns key value.

func (ListLawBooksRequestValidationError) Reason added in v0.7.0

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

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

Cause function returns cause value.

func (ListLawBooksResponseValidationError) Error added in v0.7.0

Error satisfies the builtin error interface

func (ListLawBooksResponseValidationError) ErrorName added in v0.7.0

ErrorName returns error name.

func (ListLawBooksResponseValidationError) Field added in v0.7.0

Field function returns field value.

func (ListLawBooksResponseValidationError) Key added in v0.7.0

Key function returns key value.

func (ListLawBooksResponseValidationError) Reason added in v0.7.0

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.ITracker
	Enricher *mstlystcdata.UserAwareEnricher
}

type Server

type Server struct {
	CompletorServiceServer
	// contains filtered or unexported fields
}

func NewServer

func NewServer(p Params) *Server

func (*Server) CompleteCitizens

func (s *Server) CompleteCitizens(ctx context.Context, req *CompleteCitizensRequest) (*CompleteCitizensRespoonse, error)

func (*Server) CompleteJobs

func (s *Server) CompleteJobs(ctx context.Context, req *CompleteJobsRequest) (*CompleteJobsResponse, error)

func (*Server) GetPermsRemap added in v0.7.0

func (s *Server) GetPermsRemap() map[string]string

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

func (s *Server) RegisterServer(srv *grpc.Server)

type UnimplementedCompletorServiceServer

type UnimplementedCompletorServiceServer struct {
}

UnimplementedCompletorServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedCompletorServiceServer) CompleteCitizens

func (UnimplementedCompletorServiceServer) CompleteJobs

func (UnimplementedCompletorServiceServer) ListLawBooks added in v0.7.0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL