persistence

package
v0.0.0-...-4c7982d Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// StAudioReady status table field for audioReady
	StAudioReady = "audioReady"
	// StError status table field for error
	StError = "error"
	// StErrorCode status table field for erorCode
	StErrorCode = "errorCode"
	// StAvailableResults status table field for available Results
	StAvailableResults = "avResults"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	ID            string `json:"ID"`
	Email         string `json:"email,omitempty"`
	File          string `json:"file,omitempty"`
	ExternalID    string `json:"externalID,omitempty"`
	RecognizerKey string `json:"recognizerKey,omitempty"`
	RecognizerID  string `json:"recognizerID,omitempty"`
}

Request is table for initial request info

type Result

type Result struct {
	ID   string `json:"ID"`
	Text string `json:"text,omitempty"`
}

Result is table for the final text

type Status

type Status struct {
	ID               string   `bson:"ID"`
	Status           string   `bson:"status,omitempty"`
	Error            string   `bson:"error,omitempty"`
	ErrorCode        string   `bson:"errorCode,omitempty"`
	AudioReady       bool     `bson:"audioReady,omitempty"`
	AvailableResults []string `bson:"avResults,omitempty"`
}

Status keeps job status

type WorkData

type WorkData struct {
	ID        string   `json:"ID"`
	Related   []string `json:"related,omitempty"`
	FileNames []string `json:"fileNames,omitempty"`
}

WorkData keeps related IDs for multi transcription job

Jump to

Keyboard shortcuts

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