report

package module
v0.0.0-...-0579e20 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: MIT Imports: 22 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_report_entity_proto protoreflect.FileDescriptor
View Source
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 (*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

AllErrors returns a list of validation violation errors.

func (GetReportFindingAllRequestMultiError) Error

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

Cause function returns cause value.

func (GetReportFindingAllRequestValidationError) Error

Error satisfies the builtin error interface

func (GetReportFindingAllRequestValidationError) ErrorName

ErrorName returns error name.

func (GetReportFindingAllRequestValidationError) Field

Field function returns field value.

func (GetReportFindingAllRequestValidationError) Key

Key function returns key value.

func (GetReportFindingAllRequestValidationError) Reason

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

AllErrors returns a list of validation violation errors.

func (GetReportFindingAllResponseMultiError) Error

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

Cause function returns cause value.

func (GetReportFindingAllResponseValidationError) Error

Error satisfies the builtin error interface

func (GetReportFindingAllResponseValidationError) ErrorName

ErrorName returns error name.

func (GetReportFindingAllResponseValidationError) Field

Field function returns field value.

func (GetReportFindingAllResponseValidationError) Key

Key function returns key value.

func (GetReportFindingAllResponseValidationError) Reason

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

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

Cause function returns cause value.

func (GetReportFindingRequestValidationError) Error

Error satisfies the builtin error interface

func (GetReportFindingRequestValidationError) ErrorName

ErrorName returns error name.

func (GetReportFindingRequestValidationError) Field

Field function returns field value.

func (GetReportFindingRequestValidationError) Key

Key function returns key value.

func (GetReportFindingRequestValidationError) Reason

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

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

Cause function returns cause value.

func (GetReportFindingResponseValidationError) Error

Error satisfies the builtin error interface

func (GetReportFindingResponseValidationError) ErrorName

ErrorName returns error name.

func (GetReportFindingResponseValidationError) Field

Field function returns field value.

func (GetReportFindingResponseValidationError) Key

Key function returns key value.

func (GetReportFindingResponseValidationError) Reason

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

Cause function returns cause value.

func (ReportFindingValidationError) Error

Error satisfies the builtin error interface

func (ReportFindingValidationError) ErrorName

func (e ReportFindingValidationError) ErrorName() string

ErrorName returns error name.

func (ReportFindingValidationError) Field

Field function returns field value.

func (ReportFindingValidationError) Key

Key function returns key value.

func (ReportFindingValidationError) Reason

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)
}

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.

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)
}

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) GetReportFindingAll

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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