biz

package
v0.0.0-...-1c37eff Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 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 int64) (int64, error)
}

type Transaction

type Transaction interface {
	ExecTx(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) (int64, 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