service

package
v0.0.0-...-c8c1909 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: Apache-2.0, MIT Imports: 5 Imported by: 0

README

Service

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewCartService)

ProviderSet is service providers.

Functions

This section is empty.

Types

type CartService

type CartService struct {
	pb.UnimplementedCartServer
	// contains filtered or unexported fields
}

func NewCartService

func NewCartService(cc *biz.CartUseCase, logger log.Logger) *CartService

func (*CartService) AddItem

func (s *CartService) AddItem(ctx context.Context, req *pb.AddItemRequest) (*pb.AddItemReply, error)

func (*CartService) DeleteCart

func (s *CartService) DeleteCart(ctx context.Context, req *pb.DeleteCartRequest) (*pb.DeleteCartReply, error)

func (*CartService) DeleteItem

func (s *CartService) DeleteItem(ctx context.Context, req *pb.DeleteItemRequest) (*pb.DeleteItemReply, error)

func (*CartService) GetCart

func (s *CartService) GetCart(ctx context.Context, req *pb.GetCartRequest) (reply *pb.GetCartReply, err error)

func (*CartService) UpdateItem

func (s *CartService) UpdateItem(ctx context.Context, req *pb.UpdateItemRequest) (*pb.UpdateItemReply, error)

Jump to

Keyboard shortcuts

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