Documentation
¶
Index ¶
- type FinishInterviewResponse
- type GenerateInterviewRequest
- type InterviewAnswers
- type InterviewQuestion
- type InterviewResponse
- type InterviewReview
- type InterviewSchema
- type ListInterviewsResponse
- type Server
- type SpeechConfig
- type SpeechRecognitionMessage
- type SpeechRecognitionResponse
- type SubmitAnswerRequest
- type SubmitAnswerResponse
- type TTSMessage
- type TTSResponse
- type UpdateUserCVRequest
- type UpdateUserRoleRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FinishInterviewResponse ¶
type InterviewAnswers ¶
type InterviewAnswers struct {
Answers []string `json:"answers"`
}
Parse current answers
type InterviewQuestion ¶
type InterviewQuestion struct {
Topic string `json:"topic"`
Content string `json:"content"`
ExpectedAnswer string `json:"expectedAnswer"`
TextOutput bool `json:"textOutput"`
}
Interview generation structures
type InterviewResponse ¶
type InterviewResponse struct {
UUID uuid.UUID `json:"uuid"`
UserID int32 `json:"user_id"`
InterviewSchema InterviewSchema `json:"interview_schema"`
Answers InterviewAnswers `json:"answers"`
Review InterviewReview `json:"review"`
Score int32 `json:"score"`
StepNumber int32 `json:"step_number"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
CreationMessage string `json:"creation_message"`
}
type InterviewReview ¶
type InterviewReview struct {
Reviews []string `json:"reviews"`
}
type InterviewSchema ¶
type InterviewSchema struct {
Questions []InterviewQuestion `json:"questions"`
}
type ListInterviewsResponse ¶
type ListInterviewsResponse struct {
Interviews []InterviewResponse `json:"interviews"`
Total int64 `json:"total"`
Limit int32 `json:"limit"`
Offset int32 `json:"offset"`
}
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) SetupRoutes ¶
type SpeechConfig ¶
type SpeechConfig struct {
SampleRate int64 `json:"sampleRate"`
}
type SpeechRecognitionMessage ¶
type SpeechRecognitionMessage struct {
Type string `json:"type"` // "audio" or "config"
Data []byte `json:"data,omitempty"`
Config *SpeechConfig `json:"config,omitempty"`
}
type SubmitAnswerRequest ¶
type SubmitAnswerResponse ¶
type SubmitAnswerResponse struct {
Success bool `json:"success"`
StepNumber int32 `json:"stepNumber"`
Interview InterviewResponse `json:"interview"`
}
type TTSMessage ¶
type TTSResponse ¶
type UpdateUserCVRequest ¶
type UpdateUserCVRequest struct {
CV string `json:"cv" validate:"required"`
}
type UpdateUserRoleRequest ¶
type UpdateUserRoleRequest struct {
Role string `json:"role" validate:"required,oneof=company jobseeker"`
}
Click to show internal directories.
Click to hide internal directories.