Documentation ¶
Index ¶
- type ProductAPI
- func (p *ProductAPI) CreateProductV1(ctx context.Context, req *pb.CreateProductV1Request) (*pb.CreateProductV1Response, error)
- func (p *ProductAPI) DescribeProductV1(ctx context.Context, req *pb.DescribeProductV1Request) (*pb.DescribeProductV1Response, error)
- func (p *ProductAPI) ListProductsV1(ctx context.Context, req *pb.ListProductsV1Request) (*pb.ListProductsV1Response, error)
- func (p *ProductAPI) RemoveProductV1(ctx context.Context, req *pb.RemoveProductV1Request) (*pb.RemoveProductV1Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProductAPI ¶
type ProductAPI struct { pb.UnimplementedGoProductApiServiceServer // contains filtered or unexported fields }
func NewProductAPI ¶
func NewProductAPI(s *product.Service) *ProductAPI
func (*ProductAPI) CreateProductV1 ¶
func (p *ProductAPI) CreateProductV1( ctx context.Context, req *pb.CreateProductV1Request, ) (*pb.CreateProductV1Response, error)
func (*ProductAPI) DescribeProductV1 ¶
func (p *ProductAPI) DescribeProductV1( ctx context.Context, req *pb.DescribeProductV1Request, ) (*pb.DescribeProductV1Response, error)
func (*ProductAPI) ListProductsV1 ¶
func (p *ProductAPI) ListProductsV1( ctx context.Context, req *pb.ListProductsV1Request, ) (*pb.ListProductsV1Response, error)
func (*ProductAPI) RemoveProductV1 ¶
func (p *ProductAPI) RemoveProductV1( ctx context.Context, req *pb.RemoveProductV1Request, ) (*pb.RemoveProductV1Response, error)
Click to show internal directories.
Click to hide internal directories.