Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JobStatus ¶
type JobStatus struct { JobType JobType Status JobStatusType Error string `json:"omitempty"` }
type JobStatusType ¶
type JobStatusType string
const ( JobStatusTypeStarted JobStatusType = "started" JobStatusTypeFailed = "failed" )
type JobType ¶
type JobType string
const ( JobTypeRecording JobType = "recording" JobTypeTranscribing = "transcribing" )
type RecordingJobInfo ¶ added in v0.0.3
type RecordingJobInfo struct { // Recording job ID JobID string // Call post ID PostID string // Recording files IDs FileIDs []string }
We need aliases so that we can have different validation rules.
func (RecordingJobInfo) IsValid ¶ added in v0.0.3
func (i RecordingJobInfo) IsValid() error
type TranscribingJobInfo ¶ added in v0.0.3
type TranscribingJobInfo struct { // Transcribing job ID JobID string // Call post ID PostID string // Transcription metadata Transcriptions Transcriptions }
func (TranscribingJobInfo) IsValid ¶ added in v0.0.3
func (i TranscribingJobInfo) IsValid() error
type Transcription ¶ added in v0.0.3
func (Transcription) IsValid ¶ added in v0.0.3
func (t Transcription) IsValid() error
func (Transcription) ToClientMap ¶ added in v0.0.3
func (t Transcription) ToClientMap() map[string]any
We need to do some magic in order to go through the RCP layer without errors.
type Transcriptions ¶ added in v0.0.3
type Transcriptions []Transcription
func (Transcriptions) ToClientCaptions ¶ added in v0.0.3
func (t Transcriptions) ToClientCaptions() []any
Click to show internal directories.
Click to hide internal directories.