product

package
v0.0.0-...-f8a7b2a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Svc

type Svc struct {
	product.UnimplementedProductServiceServer
	// contains filtered or unexported fields
}

func New

func New(adminOrg string, productMap map[string]*product.Product) *Svc

func (*Svc) AddProduct

func (s *Svc) AddProduct(ctx context.Context, req *product.Product) (*product.GetProductResponse, error)

func (*Svc) GetProduct

func (*Svc) GetProductCatalogue

func (s *Svc) GetProductCatalogue(ctx context.Context, req *emptypb.Empty) (*product.ProductCatalogue, error)

func (*Svc) RegisterProductService

func (h *Svc) RegisterProductService(srv *grpc.Server) error

RegisterService with grpc server.

func (*Svc) UpdateProduct

func (s *Svc) UpdateProduct(ctx context.Context, req *product.Product) (*product.Product, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL