Documentation ¶
Index ¶
- Variables
- func MapBizMenu2Pb(a *biz.Menu, b *pb.Menu)
- func MapCreatePbMenu2Biz(a *pb.CreateMenuRequest, b *biz.Menu)
- func MapUpdatePbMenu2Biz(a *pb.UpdateMenu, b *biz.Menu)
- type GrpcServerRegister
- type HttpServerRegister
- type MenuService
- func (s *MenuService) CreateMenu(ctx context.Context, req *pb.CreateMenuRequest) (*pb.Menu, error)
- func (s *MenuService) DeleteMenu(ctx context.Context, req *pb.DeleteMenuRequest) (*pb.DeleteMenuReply, error)
- func (s *MenuService) GetAvailableMenus(ctx context.Context, req *pb.GetAvailableMenusRequest) (*pb.GetAvailableMenusReply, error)
- func (s *MenuService) GetMenu(ctx context.Context, req *pb.GetMenuRequest) (*pb.Menu, error)
- func (s *MenuService) ListMenu(ctx context.Context, req *pb.ListMenuRequest) (*pb.ListMenuReply, error)
- func (s *MenuService) UpdateMenu(ctx context.Context, req *pb.UpdateMenuRequest) (*pb.Menu, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewHttpServerRegister, NewGrpcServerRegister, NewMenuService, wire.Bind(new(v1.MenuServiceServer), new(*MenuService)))
ProviderSet is service providers.
Functions ¶
func MapCreatePbMenu2Biz ¶
func MapCreatePbMenu2Biz(a *pb.CreateMenuRequest, b *biz.Menu)
func MapUpdatePbMenu2Biz ¶
func MapUpdatePbMenu2Biz(a *pb.UpdateMenu, b *biz.Menu)
Types ¶
type GrpcServerRegister ¶
type GrpcServerRegister server.GrpcServiceRegister
func NewGrpcServerRegister ¶
func NewGrpcServerRegister(menu *MenuService) GrpcServerRegister
type HttpServerRegister ¶
type HttpServerRegister server.HttpServiceRegister
func NewHttpServerRegister ¶
func NewHttpServerRegister( menu *MenuService, authzSrv authz.Service, errEncoder khttp.EncodeErrorFunc, factory blob.Factory, dataCfg *kconf.Data, opt asynq.RedisConnOpt, ) HttpServerRegister
type MenuService ¶
type MenuService struct { pb.UnimplementedMenuServiceServer // contains filtered or unexported fields }
func NewMenuService ¶
func (*MenuService) CreateMenu ¶
func (s *MenuService) CreateMenu(ctx context.Context, req *pb.CreateMenuRequest) (*pb.Menu, error)
func (*MenuService) DeleteMenu ¶
func (s *MenuService) DeleteMenu(ctx context.Context, req *pb.DeleteMenuRequest) (*pb.DeleteMenuReply, error)
func (*MenuService) GetAvailableMenus ¶
func (s *MenuService) GetAvailableMenus(ctx context.Context, req *pb.GetAvailableMenusRequest) (*pb.GetAvailableMenusReply, error)
func (*MenuService) GetMenu ¶
func (s *MenuService) GetMenu(ctx context.Context, req *pb.GetMenuRequest) (*pb.Menu, error)
func (*MenuService) ListMenu ¶
func (s *MenuService) ListMenu(ctx context.Context, req *pb.ListMenuRequest) (*pb.ListMenuReply, error)
func (*MenuService) UpdateMenu ¶
func (s *MenuService) UpdateMenu(ctx context.Context, req *pb.UpdateMenuRequest) (*pb.Menu, error)
Click to show internal directories.
Click to hide internal directories.