Documentation ¶
Index ¶
- func To[T interface{}](val interface{}) T
- type DB
- func (m *DB) DeleteWorkData(ctx context.Context, id string) error
- func (m *DB) InsertRequest(ctx context.Context, req *persistence.ReqData) error
- func (m *DB) InsertStatus(ctx context.Context, req *persistence.Status) error
- func (m *DB) InsertWorkData(ctx context.Context, data *persistence.WorkData) error
- func (m *DB) LoadRequest(ctx context.Context, id string) (*persistence.ReqData, error)
- func (m *DB) LoadStatus(ctx context.Context, id string) (*persistence.Status, error)
- func (m *DB) LoadWorkData(ctx context.Context, id string) (*persistence.WorkData, error)
- func (m *DB) LockEmailTable(ctx context.Context, id, lType string) error
- func (m *DB) UnLockEmailTable(ctx context.Context, id, lType string, val int) error
- func (m *DB) UpdateStatus(ctx context.Context, data *persistence.Status) error
- func (m *DB) UpdateWorkData(ctx context.Context, data *persistence.WorkData) error
- type Filer
- type Sender
- type Transcriber
- func (m *Transcriber) Clean(ctx context.Context, ID string) error
- func (m *Transcriber) GetAudio(ctx context.Context, ID string) (*api.FileData, error)
- func (m *Transcriber) GetResult(ctx context.Context, ID, name string) (*api.FileData, error)
- func (m *Transcriber) GetStatus(ctx context.Context, ID string) (*api.StatusData, error)
- func (m *Transcriber) HookToStatus(ctx context.Context, ID string) (<-chan api.StatusData, func(), error)
- func (m *Transcriber) Upload(ctx context.Context, ...) (string, error)
- type TranscriberProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DB ¶
DB is postgress DB mock
func (*DB) InsertRequest ¶
LoadFile func mock
func (*DB) InsertStatus ¶
LoadFile func mock
func (*DB) InsertWorkData ¶
func (*DB) LoadRequest ¶
func (*DB) LoadStatus ¶
func (*DB) LoadWorkData ¶
func (*DB) LockEmailTable ¶
func (*DB) UnLockEmailTable ¶
func (*DB) UpdateStatus ¶
func (*DB) UpdateWorkData ¶
type Transcriber ¶
Transcriber is transcription client mock
func (*Transcriber) GetStatus ¶
func (m *Transcriber) GetStatus(ctx context.Context, ID string) (*api.StatusData, error)
func (*Transcriber) HookToStatus ¶
func (m *Transcriber) HookToStatus(ctx context.Context, ID string) (<-chan api.StatusData, func(), error)
type TranscriberProvider ¶
TranscriberProvider is a provider mock
func (*TranscriberProvider) Get ¶
func (m *TranscriberProvider) Get(key string, allowNew bool) (api.Transcriber, string, error)
Click to show internal directories.
Click to hide internal directories.