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)
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
Click to show internal directories.
Click to hide internal directories.