Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProtoNewProductToInternal ¶
func ProtoNewProductToInternal(newProduct *proto.NewProduct) *products.Product
Types ¶
type ProductServer ¶
type ProductServer struct { proto.UnimplementedProductServiceServer // contains filtered or unexported fields }
func NewProductServer ¶
func NewProductServer(productService services.ProductService) *ProductServer
NewProductServer returns a new product server object.
func (*ProductServer) AddProduct ¶
func (s *ProductServer) AddProduct(ctx context.Context, req *proto.NewProduct) (*proto.Product, error)
func (*ProductServer) GetProduct ¶
func (s *ProductServer) GetProduct(ctx context.Context, input *proto.GetProductInput) (*proto.Product, error)
Click to show internal directories.
Click to hide internal directories.