Documentation ¶
Index ¶
- Variables
- type Usecase
- func (uc *Usecase) CachedResponse(ctx context.Context, inputType, requestParam string) (string, error)
- func (uc *Usecase) DetermineInputType(input string) (string, string, error)
- func (uc *Usecase) GetTextOCRResponse(OCR models.ApiResponse) ([]string, error)
- func (uc *Usecase) RequestKasperskyAPI(ctx context.Context, ioc string, apiKey string) (*models.ResponseFromAPI, error)
- func (uc *Usecase) SaveResponse(ctx context.Context, respJson, zone, inputType, requestParam string, ...) error
- func (uc *Usecase) SaveUserStats(ctx context.Context, zone, inputType, requestParam string, userID int) error
- func (uc *Usecase) SavedResponse(ctx context.Context, inputType, requestParam string) (string, error)
- func (uc *Usecase) SetCachedResponse(ctx context.Context, savedResponse, inputType, requestParam string) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Usecase ¶
type Usecase struct {
// contains filtered or unexported fields
}
func (*Usecase) CachedResponse ¶
func (*Usecase) DetermineInputType ¶
DetermineInputType определяет тип входной строки: IP, URL, домен или развернутую ссылку.
func (*Usecase) GetTextOCRResponse ¶
func (uc *Usecase) GetTextOCRResponse(OCR models.ApiResponse) ([]string, error)
возвращает слова из запроса OCR без побелов
func (*Usecase) RequestKasperskyAPI ¶
func (*Usecase) SaveResponse ¶
func (*Usecase) SaveUserStats ¶
func (*Usecase) SavedResponse ¶
Click to show internal directories.
Click to hide internal directories.