usecase

package
v0.0.0-...-a39ac13 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: MIT Imports: 10 Imported by: 0

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 Qr

type Qr interface {
	Me(ctx context.Context, userID int) ([]byte, error)
}

type QrUseCase

type QrUseCase struct {
	// contains filtered or unexported fields
}

QrUseCase -.

func NewQrUseCase

func NewQrUseCase(httpCli *http.Client, client *ssoClient.Client) *QrUseCase

New -.

func (*QrUseCase) Me

func (uq *QrUseCase) Me(ctx context.Context, userID int) ([]byte, error)

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

Translate -.

type TranslationWebAPI

type TranslationWebAPI interface {
	Translate(entity.Translation) (entity.Translation, error)
}

TranslationWebAPI -.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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