public

package module
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2023 License: AGPL-3.0, Apache-2.0 Imports: 1 Imported by: 2

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

type Transcription struct {
	Title    string
	Language string
	FileIDs  []string
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL