biz

package
v0.0.0-...-3a46aa3 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: MIT Imports: 3 Imported by: 0

README

Biz

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewUserUsecase)

ProviderSet is biz providers.

Functions

This section is empty.

Types

type CardRepo

type CardRepo interface {
	CreateCard(ctx context.Context, id int) (int, error)
}

type Transaction

type Transaction interface {
	InTx(context.Context, func(ctx context.Context) error) error
}

type User

type User struct {
	Name  string
	Email string
}

type UserRepo

type UserRepo interface {
	CreateUser(ctx context.Context, a *User) (int, error)
}

type UserUsecase

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

func NewUserUsecase

func NewUserUsecase(user UserRepo, card CardRepo, tm Transaction, logger log.Logger) *UserUsecase

func (*UserUsecase) CreateUser

func (u *UserUsecase) CreateUser(ctx context.Context, m *User) (int, error)

Jump to

Keyboard shortcuts

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