Documentation
¶
Index ¶
- type AIService
- func (_m *AIService) AskAISummaryFromFinding(ctx context.Context, f *model.Finding, r *model.Recommend, lang string) (string, error)
- func (_m *AIService) AskAISummaryStreamFromFinding(ctx context.Context, f *model.Finding, r *model.Recommend, lang string, ...) error
- func (_m *AIService) ChatAI(ctx context.Context, req *protoai.ChatAIRequest) (*protoai.ChatAIResponse, error)
- func (_m *AIService) GenerateReport(ctx context.Context, req *protoai.GenerateReportRequest) (*protoai.GenerateReportResponse, error)
- type StreamSender
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AIService ¶
AIService is an autogenerated mock type for the AIService type
func NewAIService ¶
NewAIService creates a new instance of AIService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*AIService) AskAISummaryFromFinding ¶
func (_m *AIService) AskAISummaryFromFinding(ctx context.Context, f *model.Finding, r *model.Recommend, lang string) (string, error)
AskAISummaryFromFinding provides a mock function with given fields: ctx, f, r, lang
func (*AIService) AskAISummaryStreamFromFinding ¶ added in v0.10.0
func (_m *AIService) AskAISummaryStreamFromFinding(ctx context.Context, f *model.Finding, r *model.Recommend, lang string, stream finding.FindingService_GetAISummaryStreamServer) error
AskAISummaryStreamFromFinding provides a mock function with given fields: ctx, f, r, lang, stream
func (*AIService) ChatAI ¶ added in v0.15.0
func (_m *AIService) ChatAI(ctx context.Context, req *protoai.ChatAIRequest) (*protoai.ChatAIResponse, error)
ChatAI provides a mock function with given fields: ctx, req
func (*AIService) GenerateReport ¶ added in v0.16.0
func (_m *AIService) GenerateReport(ctx context.Context, req *protoai.GenerateReportRequest) (*protoai.GenerateReportResponse, error)
GenerateReport provides a mock function with given fields: ctx, req
type StreamSender ¶ added in v0.16.0
StreamSender is an autogenerated mock type for the StreamSender type
func NewStreamSender ¶ added in v0.16.0
func NewStreamSender[T interface{}](t interface {
mock.TestingT
Cleanup(func())
}) *StreamSender[T]
NewStreamSender creates a new instance of StreamSender. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*StreamSender[T]) Send ¶ added in v0.16.0
func (_m *StreamSender[T]) Send(_a0 T) error
Send provides a mock function with given fields: _a0