biz

package
v0.0.0-...-b12402e Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: MIT, MIT Imports: 4 Imported by: 0

README

Biz

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is biz providers.

Functions

This section is empty.

Types

type Beer

type Beer struct {
	Id          int64
	Name        string
	Description string
	Count       int64
	Images      []Image
}

type CatalogRepo

type CatalogRepo interface {
	GetBeer(ctx context.Context, id int64) (*Beer, error)
	ListBeer(ctx context.Context, pageNum, pageSize int64) ([]*Beer, error)
}

type CatalogUseCase

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

func NewCatalogUseCase

func NewCatalogUseCase(repo CatalogRepo, logger log.Logger) *CatalogUseCase

func (*CatalogUseCase) GetBeer

func (uc *CatalogUseCase) GetBeer(ctx context.Context, id int64) (*Beer, error)

func (*CatalogUseCase) ListBeer

func (uc *CatalogUseCase) ListBeer(ctx context.Context, pageNum, pageSize int64) ([]*Beer, error)

type Image

type Image struct {
	URL string
}

type User

type User struct {
	Id int64
}

type UserRepo

type UserRepo interface {
}

type UserUseCase

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

func NewUserUseCase

func NewUserUseCase(repo UserRepo, logger log.Logger, us usV1.UserClient) *UserUseCase

Jump to

Keyboard shortcuts

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