Documentation
¶
Index ¶
- Variables
- type ShopAdmin
- func (s *ShopAdmin) CreateBeer(ctx context.Context, req *v1.CreateBeerReq) (*v1.CreateBeerReply, error)
- func (s *ShopAdmin) DeleteBeer(ctx context.Context, req *v1.DeleteBeerReq) (*v1.DeleteBeerReply, error)
- func (s *ShopAdmin) GetBeer(ctx context.Context, req *v1.GetBeerReq) (*v1.GetBeerReply, error)
- func (s *ShopAdmin) GetOrder(ctx context.Context, req *v1.GetOrderReq) (*v1.GetOrderReply, error)
- func (s *ShopAdmin) GetUser(ctx context.Context, req *v1.GetUserReq) (*v1.GetUserReply, error)
- func (s *ShopAdmin) ListBeer(ctx context.Context, req *v1.ListBeerReq) (*v1.ListBeerReply, error)
- func (s *ShopAdmin) ListOrder(ctx context.Context, req *v1.ListOrderReq) (*v1.ListOrderReply, error)
- func (s *ShopAdmin) ListUser(ctx context.Context, req *v1.ListUserReq) (*v1.ListUserReply, error)
- func (s *ShopAdmin) Login(ctx context.Context, req *v1.LoginReq) (*v1.LoginReply, error)
- func (s *ShopAdmin) Logout(ctx context.Context, req *v1.LogoutReq) (*v1.LogoutReply, error)
- func (s *ShopAdmin) UpdateBeer(ctx context.Context, req *v1.UpdateBeerReq) (*v1.UpdateBeerReply, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewShopAdmin)
ProviderSet is service providers.
Functions ¶
This section is empty.
Types ¶
type ShopAdmin ¶
type ShopAdmin struct { v1.UnimplementedShopAdminServer // contains filtered or unexported fields }
func NewShopAdmin ¶
func NewShopAdmin(uc *biz.UserUseCase, cc *biz.CatalogUseCase, logger log.Logger) *ShopAdmin
func (*ShopAdmin) CreateBeer ¶
func (s *ShopAdmin) CreateBeer(ctx context.Context, req *v1.CreateBeerReq) (*v1.CreateBeerReply, error)
func (*ShopAdmin) DeleteBeer ¶
func (s *ShopAdmin) DeleteBeer(ctx context.Context, req *v1.DeleteBeerReq) (*v1.DeleteBeerReply, error)
func (*ShopAdmin) GetBeer ¶
func (s *ShopAdmin) GetBeer(ctx context.Context, req *v1.GetBeerReq) (*v1.GetBeerReply, error)
func (*ShopAdmin) GetOrder ¶
func (s *ShopAdmin) GetOrder(ctx context.Context, req *v1.GetOrderReq) (*v1.GetOrderReply, error)
func (*ShopAdmin) GetUser ¶
func (s *ShopAdmin) GetUser(ctx context.Context, req *v1.GetUserReq) (*v1.GetUserReply, error)
func (*ShopAdmin) ListBeer ¶
func (s *ShopAdmin) ListBeer(ctx context.Context, req *v1.ListBeerReq) (*v1.ListBeerReply, error)
func (*ShopAdmin) ListOrder ¶
func (s *ShopAdmin) ListOrder(ctx context.Context, req *v1.ListOrderReq) (*v1.ListOrderReply, error)
func (*ShopAdmin) ListUser ¶
func (s *ShopAdmin) ListUser(ctx context.Context, req *v1.ListUserReq) (*v1.ListUserReply, error)
func (*ShopAdmin) UpdateBeer ¶
func (s *ShopAdmin) UpdateBeer(ctx context.Context, req *v1.UpdateBeerReq) (*v1.UpdateBeerReply, error)
Click to show internal directories.
Click to hide internal directories.