app

package
v0.0.0-...-2f8ace5 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFoundOperations = errors.New("not found operations for type")
	ErrNotFoundAccount    = errors.New("not found account")
	ErrInactiveOperation  = errors.New("cannot save this transaction because invalid operation type or inactive")
)

Functions

This section is empty.

Types

type Component

type Component interface {
	CreateUser(ctx context.Context, in domain.AccountIn) (err error)
	GetUserById(ctx context.Context, id string) (out domain.AccountOut, err error)
	GetAllUsers(ctx context.Context) (out domain.AllAccounts, err error)
	SaveTransaction(ctx context.Context, in domain.TransactionIn) (ok bool, err error)
	GetAllOperations(ctx context.Context) (out domain.AllOperations, err error)
	ThereIsOperationTypById(ctx context.Context, id string) (err error)
}

type Config

type Config struct {
	Driver string
	Source string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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