Documentation
¶
Index ¶
- Variables
- func RegisterReportServiceServer(s *grpc.Server, srv ReportServiceServer)
- type GetReportFindingAllRequest
- func (*GetReportFindingAllRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetReportFindingAllRequest) GetDataSource() []string
- func (x *GetReportFindingAllRequest) GetFromDate() string
- func (x *GetReportFindingAllRequest) GetProjectId() uint32
- func (x *GetReportFindingAllRequest) GetScore() float32
- func (x *GetReportFindingAllRequest) GetToDate() string
- func (*GetReportFindingAllRequest) ProtoMessage()
- func (x *GetReportFindingAllRequest) ProtoReflect() protoreflect.Message
- func (x *GetReportFindingAllRequest) Reset()
- func (x *GetReportFindingAllRequest) String() string
- func (m *GetReportFindingAllRequest) Validate() error
- func (m *GetReportFindingAllRequest) ValidateAll() error
- type GetReportFindingAllRequestMultiError
- type GetReportFindingAllRequestValidationError
- func (e GetReportFindingAllRequestValidationError) Cause() error
- func (e GetReportFindingAllRequestValidationError) Error() string
- func (e GetReportFindingAllRequestValidationError) ErrorName() string
- func (e GetReportFindingAllRequestValidationError) Field() string
- func (e GetReportFindingAllRequestValidationError) Key() bool
- func (e GetReportFindingAllRequestValidationError) Reason() string
- type GetReportFindingAllResponse
- func (*GetReportFindingAllResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetReportFindingAllResponse) GetReportFinding() []*ReportFinding
- func (*GetReportFindingAllResponse) ProtoMessage()
- func (x *GetReportFindingAllResponse) ProtoReflect() protoreflect.Message
- func (x *GetReportFindingAllResponse) Reset()
- func (x *GetReportFindingAllResponse) String() string
- func (m *GetReportFindingAllResponse) Validate() error
- func (m *GetReportFindingAllResponse) ValidateAll() error
- type GetReportFindingAllResponseMultiError
- type GetReportFindingAllResponseValidationError
- func (e GetReportFindingAllResponseValidationError) Cause() error
- func (e GetReportFindingAllResponseValidationError) Error() string
- func (e GetReportFindingAllResponseValidationError) ErrorName() string
- func (e GetReportFindingAllResponseValidationError) Field() string
- func (e GetReportFindingAllResponseValidationError) Key() bool
- func (e GetReportFindingAllResponseValidationError) Reason() string
- type GetReportFindingRequest
- func (*GetReportFindingRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetReportFindingRequest) GetDataSource() []string
- func (x *GetReportFindingRequest) GetFromDate() string
- func (x *GetReportFindingRequest) GetProjectId() uint32
- func (x *GetReportFindingRequest) GetScore() float32
- func (x *GetReportFindingRequest) GetToDate() string
- func (*GetReportFindingRequest) ProtoMessage()
- func (x *GetReportFindingRequest) ProtoReflect() protoreflect.Message
- func (x *GetReportFindingRequest) Reset()
- func (x *GetReportFindingRequest) String() string
- func (m *GetReportFindingRequest) Validate() error
- func (m *GetReportFindingRequest) ValidateAll() error
- type GetReportFindingRequestMultiError
- type GetReportFindingRequestValidationError
- func (e GetReportFindingRequestValidationError) Cause() error
- func (e GetReportFindingRequestValidationError) Error() string
- func (e GetReportFindingRequestValidationError) ErrorName() string
- func (e GetReportFindingRequestValidationError) Field() string
- func (e GetReportFindingRequestValidationError) Key() bool
- func (e GetReportFindingRequestValidationError) Reason() string
- type GetReportFindingResponse
- func (*GetReportFindingResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetReportFindingResponse) GetReportFinding() []*ReportFinding
- func (*GetReportFindingResponse) ProtoMessage()
- func (x *GetReportFindingResponse) ProtoReflect() protoreflect.Message
- func (x *GetReportFindingResponse) Reset()
- func (x *GetReportFindingResponse) String() string
- func (m *GetReportFindingResponse) Validate() error
- func (m *GetReportFindingResponse) ValidateAll() error
- type GetReportFindingResponseMultiError
- type GetReportFindingResponseValidationError
- func (e GetReportFindingResponseValidationError) Cause() error
- func (e GetReportFindingResponseValidationError) Error() string
- func (e GetReportFindingResponseValidationError) ErrorName() string
- func (e GetReportFindingResponseValidationError) Field() string
- func (e GetReportFindingResponseValidationError) Key() bool
- func (e GetReportFindingResponseValidationError) Reason() string
- type ReportFinding
- func (*ReportFinding) Descriptor() ([]byte, []int)deprecated
- func (x *ReportFinding) GetCategory() string
- func (x *ReportFinding) GetCount() uint32
- func (x *ReportFinding) GetDataSource() string
- func (x *ReportFinding) GetProjectId() uint32
- func (x *ReportFinding) GetProjectName() string
- func (x *ReportFinding) GetReportDate() string
- func (x *ReportFinding) GetReportFindingId() uint32
- func (x *ReportFinding) GetScore() float32
- func (*ReportFinding) ProtoMessage()
- func (x *ReportFinding) ProtoReflect() protoreflect.Message
- func (x *ReportFinding) Reset()
- func (x *ReportFinding) String() string
- func (m *ReportFinding) Validate() error
- func (m *ReportFinding) ValidateAll() error
- type ReportFindingMultiError
- type ReportFindingValidationError
- func (e ReportFindingValidationError) Cause() error
- func (e ReportFindingValidationError) Error() string
- func (e ReportFindingValidationError) ErrorName() string
- func (e ReportFindingValidationError) Field() string
- func (e ReportFindingValidationError) Key() bool
- func (e ReportFindingValidationError) Reason() string
- type ReportServiceClient
- type ReportServiceServer
- type UnimplementedReportServiceServer
- func (*UnimplementedReportServiceServer) CollectReportFinding(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
- func (*UnimplementedReportServiceServer) GetReportFinding(context.Context, *GetReportFindingRequest) (*GetReportFindingResponse, error)
- func (*UnimplementedReportServiceServer) GetReportFindingAll(context.Context, *GetReportFindingAllRequest) (*GetReportFindingAllResponse, error)
- func (*UnimplementedReportServiceServer) PurgeReportFinding(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
Constants ¶
This section is empty.
Variables ¶
var File_report_entity_proto protoreflect.FileDescriptor
var File_report_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterReportServiceServer ¶
func RegisterReportServiceServer(s *grpc.Server, srv ReportServiceServer)
Types ¶
type GetReportFindingAllRequest ¶
type GetReportFindingAllRequest struct { ProjectId uint32 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` FromDate string `protobuf:"bytes,2,opt,name=from_date,json=fromDate,proto3" json:"from_date,omitempty"` ToDate string `protobuf:"bytes,3,opt,name=to_date,json=toDate,proto3" json:"to_date,omitempty"` Score float32 `protobuf:"fixed32,4,opt,name=score,proto3" json:"score,omitempty"` DataSource []string `protobuf:"bytes,5,rep,name=data_source,json=dataSource,proto3" json:"data_source,omitempty"` // contains filtered or unexported fields }
func (*GetReportFindingAllRequest) Descriptor
deprecated
func (*GetReportFindingAllRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetReportFindingAllRequest.ProtoReflect.Descriptor instead.
func (*GetReportFindingAllRequest) GetDataSource ¶
func (x *GetReportFindingAllRequest) GetDataSource() []string
func (*GetReportFindingAllRequest) GetFromDate ¶
func (x *GetReportFindingAllRequest) GetFromDate() string
func (*GetReportFindingAllRequest) GetProjectId ¶
func (x *GetReportFindingAllRequest) GetProjectId() uint32
func (*GetReportFindingAllRequest) GetScore ¶
func (x *GetReportFindingAllRequest) GetScore() float32
func (*GetReportFindingAllRequest) GetToDate ¶
func (x *GetReportFindingAllRequest) GetToDate() string
func (*GetReportFindingAllRequest) ProtoMessage ¶
func (*GetReportFindingAllRequest) ProtoMessage()
func (*GetReportFindingAllRequest) ProtoReflect ¶
func (x *GetReportFindingAllRequest) ProtoReflect() protoreflect.Message
func (*GetReportFindingAllRequest) Reset ¶
func (x *GetReportFindingAllRequest) Reset()
func (*GetReportFindingAllRequest) String ¶
func (x *GetReportFindingAllRequest) String() string
func (*GetReportFindingAllRequest) Validate ¶
func (m *GetReportFindingAllRequest) Validate() error
Validate checks the field values on GetReportFindingAllRequest 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 (*GetReportFindingAllRequest) ValidateAll ¶
func (m *GetReportFindingAllRequest) ValidateAll() error
ValidateAll checks the field values on GetReportFindingAllRequest 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 GetReportFindingAllRequestMultiError, or nil if none found.
type GetReportFindingAllRequestMultiError ¶
type GetReportFindingAllRequestMultiError []error
GetReportFindingAllRequestMultiError is an error wrapping multiple validation errors returned by GetReportFindingAllRequest.ValidateAll() if the designated constraints aren't met.
func (GetReportFindingAllRequestMultiError) AllErrors ¶
func (m GetReportFindingAllRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetReportFindingAllRequestMultiError) Error ¶
func (m GetReportFindingAllRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetReportFindingAllRequestValidationError ¶
type GetReportFindingAllRequestValidationError struct {
// contains filtered or unexported fields
}
GetReportFindingAllRequestValidationError is the validation error returned by GetReportFindingAllRequest.Validate if the designated constraints aren't met.
func (GetReportFindingAllRequestValidationError) Cause ¶
func (e GetReportFindingAllRequestValidationError) Cause() error
Cause function returns cause value.
func (GetReportFindingAllRequestValidationError) Error ¶
func (e GetReportFindingAllRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetReportFindingAllRequestValidationError) ErrorName ¶
func (e GetReportFindingAllRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetReportFindingAllRequestValidationError) Field ¶
func (e GetReportFindingAllRequestValidationError) Field() string
Field function returns field value.
func (GetReportFindingAllRequestValidationError) Key ¶
func (e GetReportFindingAllRequestValidationError) Key() bool
Key function returns key value.
func (GetReportFindingAllRequestValidationError) Reason ¶
func (e GetReportFindingAllRequestValidationError) Reason() string
Reason function returns reason value.
type GetReportFindingAllResponse ¶
type GetReportFindingAllResponse struct { ReportFinding []*ReportFinding `protobuf:"bytes,1,rep,name=report_finding,json=reportFinding,proto3" json:"report_finding,omitempty"` // contains filtered or unexported fields }
func (*GetReportFindingAllResponse) Descriptor
deprecated
func (*GetReportFindingAllResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetReportFindingAllResponse.ProtoReflect.Descriptor instead.
func (*GetReportFindingAllResponse) GetReportFinding ¶
func (x *GetReportFindingAllResponse) GetReportFinding() []*ReportFinding
func (*GetReportFindingAllResponse) ProtoMessage ¶
func (*GetReportFindingAllResponse) ProtoMessage()
func (*GetReportFindingAllResponse) ProtoReflect ¶
func (x *GetReportFindingAllResponse) ProtoReflect() protoreflect.Message
func (*GetReportFindingAllResponse) Reset ¶
func (x *GetReportFindingAllResponse) Reset()
func (*GetReportFindingAllResponse) String ¶
func (x *GetReportFindingAllResponse) String() string
func (*GetReportFindingAllResponse) Validate ¶
func (m *GetReportFindingAllResponse) Validate() error
Validate checks the field values on GetReportFindingAllResponse 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 (*GetReportFindingAllResponse) ValidateAll ¶
func (m *GetReportFindingAllResponse) ValidateAll() error
ValidateAll checks the field values on GetReportFindingAllResponse 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 GetReportFindingAllResponseMultiError, or nil if none found.
type GetReportFindingAllResponseMultiError ¶
type GetReportFindingAllResponseMultiError []error
GetReportFindingAllResponseMultiError is an error wrapping multiple validation errors returned by GetReportFindingAllResponse.ValidateAll() if the designated constraints aren't met.
func (GetReportFindingAllResponseMultiError) AllErrors ¶
func (m GetReportFindingAllResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetReportFindingAllResponseMultiError) Error ¶
func (m GetReportFindingAllResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetReportFindingAllResponseValidationError ¶
type GetReportFindingAllResponseValidationError struct {
// contains filtered or unexported fields
}
GetReportFindingAllResponseValidationError is the validation error returned by GetReportFindingAllResponse.Validate if the designated constraints aren't met.
func (GetReportFindingAllResponseValidationError) Cause ¶
func (e GetReportFindingAllResponseValidationError) Cause() error
Cause function returns cause value.
func (GetReportFindingAllResponseValidationError) Error ¶
func (e GetReportFindingAllResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetReportFindingAllResponseValidationError) ErrorName ¶
func (e GetReportFindingAllResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetReportFindingAllResponseValidationError) Field ¶
func (e GetReportFindingAllResponseValidationError) Field() string
Field function returns field value.
func (GetReportFindingAllResponseValidationError) Key ¶
func (e GetReportFindingAllResponseValidationError) Key() bool
Key function returns key value.
func (GetReportFindingAllResponseValidationError) Reason ¶
func (e GetReportFindingAllResponseValidationError) Reason() string
Reason function returns reason value.
type GetReportFindingRequest ¶
type GetReportFindingRequest struct { ProjectId uint32 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` FromDate string `protobuf:"bytes,2,opt,name=from_date,json=fromDate,proto3" json:"from_date,omitempty"` ToDate string `protobuf:"bytes,3,opt,name=to_date,json=toDate,proto3" json:"to_date,omitempty"` Score float32 `protobuf:"fixed32,4,opt,name=score,proto3" json:"score,omitempty"` DataSource []string `protobuf:"bytes,5,rep,name=data_source,json=dataSource,proto3" json:"data_source,omitempty"` // contains filtered or unexported fields }
func (*GetReportFindingRequest) Descriptor
deprecated
func (*GetReportFindingRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetReportFindingRequest.ProtoReflect.Descriptor instead.
func (*GetReportFindingRequest) GetDataSource ¶
func (x *GetReportFindingRequest) GetDataSource() []string
func (*GetReportFindingRequest) GetFromDate ¶
func (x *GetReportFindingRequest) GetFromDate() string
func (*GetReportFindingRequest) GetProjectId ¶
func (x *GetReportFindingRequest) GetProjectId() uint32
func (*GetReportFindingRequest) GetScore ¶
func (x *GetReportFindingRequest) GetScore() float32
func (*GetReportFindingRequest) GetToDate ¶
func (x *GetReportFindingRequest) GetToDate() string
func (*GetReportFindingRequest) ProtoMessage ¶
func (*GetReportFindingRequest) ProtoMessage()
func (*GetReportFindingRequest) ProtoReflect ¶
func (x *GetReportFindingRequest) ProtoReflect() protoreflect.Message
func (*GetReportFindingRequest) Reset ¶
func (x *GetReportFindingRequest) Reset()
func (*GetReportFindingRequest) String ¶
func (x *GetReportFindingRequest) String() string
func (*GetReportFindingRequest) Validate ¶
func (m *GetReportFindingRequest) Validate() error
Validate checks the field values on GetReportFindingRequest 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 (*GetReportFindingRequest) ValidateAll ¶
func (m *GetReportFindingRequest) ValidateAll() error
ValidateAll checks the field values on GetReportFindingRequest 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 GetReportFindingRequestMultiError, or nil if none found.
type GetReportFindingRequestMultiError ¶
type GetReportFindingRequestMultiError []error
GetReportFindingRequestMultiError is an error wrapping multiple validation errors returned by GetReportFindingRequest.ValidateAll() if the designated constraints aren't met.
func (GetReportFindingRequestMultiError) AllErrors ¶
func (m GetReportFindingRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetReportFindingRequestMultiError) Error ¶
func (m GetReportFindingRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetReportFindingRequestValidationError ¶
type GetReportFindingRequestValidationError struct {
// contains filtered or unexported fields
}
GetReportFindingRequestValidationError is the validation error returned by GetReportFindingRequest.Validate if the designated constraints aren't met.
func (GetReportFindingRequestValidationError) Cause ¶
func (e GetReportFindingRequestValidationError) Cause() error
Cause function returns cause value.
func (GetReportFindingRequestValidationError) Error ¶
func (e GetReportFindingRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetReportFindingRequestValidationError) ErrorName ¶
func (e GetReportFindingRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetReportFindingRequestValidationError) Field ¶
func (e GetReportFindingRequestValidationError) Field() string
Field function returns field value.
func (GetReportFindingRequestValidationError) Key ¶
func (e GetReportFindingRequestValidationError) Key() bool
Key function returns key value.
func (GetReportFindingRequestValidationError) Reason ¶
func (e GetReportFindingRequestValidationError) Reason() string
Reason function returns reason value.
type GetReportFindingResponse ¶
type GetReportFindingResponse struct { ReportFinding []*ReportFinding `protobuf:"bytes,1,rep,name=report_finding,json=reportFinding,proto3" json:"report_finding,omitempty"` // contains filtered or unexported fields }
func (*GetReportFindingResponse) Descriptor
deprecated
func (*GetReportFindingResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetReportFindingResponse.ProtoReflect.Descriptor instead.
func (*GetReportFindingResponse) GetReportFinding ¶
func (x *GetReportFindingResponse) GetReportFinding() []*ReportFinding
func (*GetReportFindingResponse) ProtoMessage ¶
func (*GetReportFindingResponse) ProtoMessage()
func (*GetReportFindingResponse) ProtoReflect ¶
func (x *GetReportFindingResponse) ProtoReflect() protoreflect.Message
func (*GetReportFindingResponse) Reset ¶
func (x *GetReportFindingResponse) Reset()
func (*GetReportFindingResponse) String ¶
func (x *GetReportFindingResponse) String() string
func (*GetReportFindingResponse) Validate ¶
func (m *GetReportFindingResponse) Validate() error
Validate checks the field values on GetReportFindingResponse 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 (*GetReportFindingResponse) ValidateAll ¶
func (m *GetReportFindingResponse) ValidateAll() error
ValidateAll checks the field values on GetReportFindingResponse 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 GetReportFindingResponseMultiError, or nil if none found.
type GetReportFindingResponseMultiError ¶
type GetReportFindingResponseMultiError []error
GetReportFindingResponseMultiError is an error wrapping multiple validation errors returned by GetReportFindingResponse.ValidateAll() if the designated constraints aren't met.
func (GetReportFindingResponseMultiError) AllErrors ¶
func (m GetReportFindingResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetReportFindingResponseMultiError) Error ¶
func (m GetReportFindingResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetReportFindingResponseValidationError ¶
type GetReportFindingResponseValidationError struct {
// contains filtered or unexported fields
}
GetReportFindingResponseValidationError is the validation error returned by GetReportFindingResponse.Validate if the designated constraints aren't met.
func (GetReportFindingResponseValidationError) Cause ¶
func (e GetReportFindingResponseValidationError) Cause() error
Cause function returns cause value.
func (GetReportFindingResponseValidationError) Error ¶
func (e GetReportFindingResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetReportFindingResponseValidationError) ErrorName ¶
func (e GetReportFindingResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetReportFindingResponseValidationError) Field ¶
func (e GetReportFindingResponseValidationError) Field() string
Field function returns field value.
func (GetReportFindingResponseValidationError) Key ¶
func (e GetReportFindingResponseValidationError) Key() bool
Key function returns key value.
func (GetReportFindingResponseValidationError) Reason ¶
func (e GetReportFindingResponseValidationError) Reason() string
Reason function returns reason value.
type ReportFinding ¶
type ReportFinding struct { ReportFindingId uint32 `protobuf:"varint,1,opt,name=report_finding_id,json=reportFindingId,proto3" json:"report_finding_id,omitempty"` ReportDate string `protobuf:"bytes,2,opt,name=report_date,json=reportDate,proto3" json:"report_date,omitempty"` ProjectId uint32 `protobuf:"varint,3,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` ProjectName string `protobuf:"bytes,4,opt,name=project_name,json=projectName,proto3" json:"project_name,omitempty"` Category string `protobuf:"bytes,5,opt,name=category,proto3" json:"category,omitempty"` DataSource string `protobuf:"bytes,6,opt,name=data_source,json=dataSource,proto3" json:"data_source,omitempty"` Score float32 `protobuf:"fixed32,7,opt,name=score,proto3" json:"score,omitempty"` Count uint32 `protobuf:"varint,8,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
Report
func (*ReportFinding) Descriptor
deprecated
func (*ReportFinding) Descriptor() ([]byte, []int)
Deprecated: Use ReportFinding.ProtoReflect.Descriptor instead.
func (*ReportFinding) GetCategory ¶
func (x *ReportFinding) GetCategory() string
func (*ReportFinding) GetCount ¶
func (x *ReportFinding) GetCount() uint32
func (*ReportFinding) GetDataSource ¶
func (x *ReportFinding) GetDataSource() string
func (*ReportFinding) GetProjectId ¶
func (x *ReportFinding) GetProjectId() uint32
func (*ReportFinding) GetProjectName ¶
func (x *ReportFinding) GetProjectName() string
func (*ReportFinding) GetReportDate ¶
func (x *ReportFinding) GetReportDate() string
func (*ReportFinding) GetReportFindingId ¶
func (x *ReportFinding) GetReportFindingId() uint32
func (*ReportFinding) GetScore ¶
func (x *ReportFinding) GetScore() float32
func (*ReportFinding) ProtoMessage ¶
func (*ReportFinding) ProtoMessage()
func (*ReportFinding) ProtoReflect ¶
func (x *ReportFinding) ProtoReflect() protoreflect.Message
func (*ReportFinding) Reset ¶
func (x *ReportFinding) Reset()
func (*ReportFinding) String ¶
func (x *ReportFinding) String() string
func (*ReportFinding) Validate ¶
func (m *ReportFinding) Validate() error
Validate checks the field values on ReportFinding 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 (*ReportFinding) ValidateAll ¶
func (m *ReportFinding) ValidateAll() error
ValidateAll checks the field values on ReportFinding 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 ReportFindingMultiError, or nil if none found.
type ReportFindingMultiError ¶
type ReportFindingMultiError []error
ReportFindingMultiError is an error wrapping multiple validation errors returned by ReportFinding.ValidateAll() if the designated constraints aren't met.
func (ReportFindingMultiError) AllErrors ¶
func (m ReportFindingMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ReportFindingMultiError) Error ¶
func (m ReportFindingMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ReportFindingValidationError ¶
type ReportFindingValidationError struct {
// contains filtered or unexported fields
}
ReportFindingValidationError is the validation error returned by ReportFinding.Validate if the designated constraints aren't met.
func (ReportFindingValidationError) Cause ¶
func (e ReportFindingValidationError) Cause() error
Cause function returns cause value.
func (ReportFindingValidationError) Error ¶
func (e ReportFindingValidationError) Error() string
Error satisfies the builtin error interface
func (ReportFindingValidationError) ErrorName ¶
func (e ReportFindingValidationError) ErrorName() string
ErrorName returns error name.
func (ReportFindingValidationError) Field ¶
func (e ReportFindingValidationError) Field() string
Field function returns field value.
func (ReportFindingValidationError) Key ¶
func (e ReportFindingValidationError) Key() bool
Key function returns key value.
func (ReportFindingValidationError) Reason ¶
func (e ReportFindingValidationError) Reason() string
Reason function returns reason value.
type ReportServiceClient ¶
type ReportServiceClient interface { // report GetReportFinding(ctx context.Context, in *GetReportFindingRequest, opts ...grpc.CallOption) (*GetReportFindingResponse, error) GetReportFindingAll(ctx context.Context, in *GetReportFindingAllRequest, opts ...grpc.CallOption) (*GetReportFindingAllResponse, error) CollectReportFinding(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) PurgeReportFinding(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) }
ReportServiceClient is the client API for ReportService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewReportServiceClient ¶
func NewReportServiceClient(cc grpc.ClientConnInterface) ReportServiceClient
type ReportServiceServer ¶
type ReportServiceServer interface { // report GetReportFinding(context.Context, *GetReportFindingRequest) (*GetReportFindingResponse, error) GetReportFindingAll(context.Context, *GetReportFindingAllRequest) (*GetReportFindingAllResponse, error) CollectReportFinding(context.Context, *emptypb.Empty) (*emptypb.Empty, error) PurgeReportFinding(context.Context, *emptypb.Empty) (*emptypb.Empty, error) }
ReportServiceServer is the server API for ReportService service.
type UnimplementedReportServiceServer ¶
type UnimplementedReportServiceServer struct { }
UnimplementedReportServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedReportServiceServer) CollectReportFinding ¶
func (*UnimplementedReportServiceServer) GetReportFinding ¶
func (*UnimplementedReportServiceServer) GetReportFinding(context.Context, *GetReportFindingRequest) (*GetReportFindingResponse, error)
func (*UnimplementedReportServiceServer) GetReportFindingAll ¶
func (*UnimplementedReportServiceServer) GetReportFindingAll(context.Context, *GetReportFindingAllRequest) (*GetReportFindingAllResponse, error)