Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAudioNotFound = errors.New("Audio not found")
Functions ¶
This section is empty.
Types ¶
type Audio ¶
type Audio interface {
GetAudioModel() domain.AudioModel
}
type AudioRepository ¶
type AudioRepository interface { AddAudio(ctx context.Context, lang5 domain.Lang5, text, audioContent string) (domain.AudioID, error) FindAudioByAudioID(ctx context.Context, audioID domain.AudioID) (Audio, error) FindByLangAndText(ctx context.Context, lang5 domain.Lang5, text string) (Audio, error) FindAudioIDByText(ctx context.Context, lang5 domain.Lang5, text string) (domain.AudioID, error) }
type RepositoryFactory ¶
type RepositoryFactory interface {
NewAudioRepository(ctx context.Context) AudioRepository
}
type RepositoryFactoryFunc ¶
type SynthesizerClient ¶
type Transaction ¶
type Transaction interface {
Do(ctx context.Context, fn func(rf RepositoryFactory) error) error
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.