Documentation ¶
Index ¶
- type ProductServer
- func (s *ProductServer) Create(ctx context.Context, req *productv1.CreateRequest) (*productv1.CreateResponse, error)
- func (s *ProductServer) DecreaseStock(ctx context.Context, req *productv1.DecreaseStockRequest) (*productv1.DecreaseStockResponse, error)
- func (s *ProductServer) FindOne(ctx context.Context, req *productv1.FindOneRequest) (*productv1.FindOneResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProductServer ¶
type ProductServer struct { productv1.UnimplementedProductServiceServer // contains filtered or unexported fields }
func NewProductServer ¶
func NewProductServer(repo *repo.Repository, log *zap.Logger) *ProductServer
func (*ProductServer) Create ¶
func (s *ProductServer) Create(ctx context.Context, req *productv1.CreateRequest) (*productv1.CreateResponse, error)
func (*ProductServer) DecreaseStock ¶
func (s *ProductServer) DecreaseStock(ctx context.Context, req *productv1.DecreaseStockRequest) (*productv1.DecreaseStockResponse, error)
func (*ProductServer) FindOne ¶
func (s *ProductServer) FindOne(ctx context.Context, req *productv1.FindOneRequest) (*productv1.FindOneResponse, error)
Click to show internal directories.
Click to hide internal directories.