usecase

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2026 License: MIT Imports: 2 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 Task added in v1.16.0

type Task interface {
	Create(ctx context.Context, userID, title, description string) (entity.Task, error)
	Get(ctx context.Context, userID, taskID string) (entity.Task, error)
	List(ctx context.Context, userID string, status *entity.TaskStatus, limit, offset int) ([]entity.Task, int, error)
	Update(ctx context.Context, userID, taskID, title, description string) (entity.Task, error)
	Transition(ctx context.Context, userID, taskID string, newStatus entity.TaskStatus) (entity.Task, error)
	Delete(ctx context.Context, userID, taskID string) error
}

Task -.

type Translation

type Translation interface {
	Translate(ctx context.Context, userID string, t entity.Translation) (entity.Translation, error)
	History(ctx context.Context, userID string) (entity.TranslationHistory, error)
}

Translation -.

type User added in v1.16.0

type User interface {
	Register(ctx context.Context, username, email, password string) (entity.User, error)
	Login(ctx context.Context, email, password string) (string, error)
	GetUser(ctx context.Context, userID string) (entity.User, error)
}

User -.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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