Documentation ¶
Overview ¶
Package usecase implements application business logic. Each logic group in own file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QrUseCase ¶
type QrUseCase struct {
// contains filtered or unexported fields
}
QrUseCase -.
func NewQrUseCase ¶
New -.
type Translation ¶
type Translation interface { Translate(context.Context, entity.Translation) (entity.Translation, error) History(context.Context) ([]entity.Translation, error) }
Translation -.
type TranslationRepo ¶
type TranslationRepo interface { Store(context.Context, entity.Translation) error GetHistory(context.Context) ([]entity.Translation, error) }
TranslationRepo -.
type TranslationUseCase ¶
type TranslationUseCase struct {
// contains filtered or unexported fields
}
TranslationUseCase -.
func (*TranslationUseCase) History ¶
func (uc *TranslationUseCase) History(ctx context.Context) ([]entity.Translation, error)
History - getting translate history from store.
func (*TranslationUseCase) Translate ¶
func (uc *TranslationUseCase) Translate(ctx context.Context, t entity.Translation) (entity.Translation, error)
Translate -.
type TranslationWebAPI ¶
type TranslationWebAPI interface {
Translate(entity.Translation) (entity.Translation, error)
}
TranslationWebAPI -.
Click to show internal directories.
Click to hide internal directories.