Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DetectionData ¶
DetectionData запрос пользователя с uuid для идентификации на пользовательской стороне
type DetectionQueryCreate ¶
type DetectionQueryCreate struct {
SessionId int64
Content string // запрос пользователя
Label string // тип операции обработки мл модели
Status DetectionStatus // статус обработки мл модели
DetectedKeys map[string]any // ключи, которые выдает модель
}
DetectionQueryCreate минимальный набор данных для сохранения запроса
type DetectionQueryDao ¶
type DetectionQueryDao struct {
Id int64 `db:"id"`
SessionId int64 `db:"session_id"`
Content string `db:"content"`
DetectedLabel string `db:"label"`
DetectedKeys map[string]any `db:"detected_keys"`
Status DetectionStatus `db:"status"`
CreatedAt time.Time `db:"created_at"`
}
DetectionQueryDao запрос пользователя с результатом мл модели
type DetectionResult ¶
type DetectionResult struct {
SessionUUID string
QueryId int64
Content map[string]any
Status DetectionStatus
Response string
}
DetectionResult обработки пользовательского запроса к модели
type DetectionSessionDao ¶
type DetectionSessionDao struct {
Id int64 `db:"id"`
Uuid uuid.UUID `db:"uuid"`
UserId int64 `db:"user_id"`
CreatedAt time.Time `db:"created_at"`
}
DetectionSessionDao сессия обработки от начала запроса до конечного действия / сценария
type DetectionStatus ¶
type DetectionStatus int
DetectionStatus состояние обработки запроса пользователя
const ( // InternalErr ошибка в работе мл модели InternalErr DetectionStatus = iota // NotEnoughParams недостаточно параметров для выбранной операции NotEnoughParams // Success операция сгенерирована успешна Success )
type InputField ¶
type InputField struct {
Name string `json:"name"`
Type string `json:"type"`
PlaceHolder string `json:"placeholder"`
Label string `json:"label"`
InputMode string `json:"inputmode"`
SpellCheck bool `json:"spellcheck"`
}
InputField действие, которое можно совершить на странице
type InputFieldDao ¶
type InputFieldDao struct {
Id int64 `db:"id"`
Name string `db:"name"`
Type string `db:"type"`
PlaceHolder string `db:"placeholder"`
Label string `db:"label"`
InputMode string `db:"inputmode"`
SpellCheck bool `db:"spellcheck"`
}
InputFieldDao представление действия в бд
type PageCreate ¶
PageCreate данные для обработки страницы
Click to show internal directories.
Click to hide internal directories.