biz

package
v0.0.0-...-b8b67ef Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2021 License: MIT Imports: 3 Imported by: 0

README

Biz

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is biz providers.

Functions

This section is empty.

Types

type Account

type Account struct {
	Name  string
	Email string
}

type AccountRepo

type AccountRepo interface {
	CreateAccount(context.Context, *Account) error
	UpdateAccount(context.Context, *Account) error
}

type AccountUsecase

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

func NewAccountUsecase

func NewAccountUsecase(repo AccountRepo, logger log.Logger) *AccountUsecase

func (*AccountUsecase) Create

func (uc *AccountUsecase) Create(ctx context.Context, g *Account) error

func (*AccountUsecase) Update

func (uc *AccountUsecase) Update(ctx context.Context, g *Account) error

type Greeter

type Greeter struct {
	Hello string
}

type GreeterRepo

type GreeterRepo interface {
	CreateGreeter(context.Context, *Greeter) error
	UpdateGreeter(context.Context, *Greeter) error
}

type GreeterUsecase

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

func NewGreeterUsecase

func NewGreeterUsecase(repo GreeterRepo, logger log.Logger) *GreeterUsecase

func (*GreeterUsecase) Create

func (uc *GreeterUsecase) Create(ctx context.Context, g *Greeter) error

func (*GreeterUsecase) Update

func (uc *GreeterUsecase) Update(ctx context.Context, g *Greeter) error

Jump to

Keyboard shortcuts

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