product

package
v0.0.0-...-20f091a Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Storer Storer
	Tracer trace.Tracer
	pb.UnimplementedProductServiceServer
}

func NewServer

func NewServer(s Storer) *Server

func (*Server) GetProductsByUser

func (s *Server) GetProductsByUser(ctx context.Context, req *pb.GetProductsByUserReq) (*pb.GetProductsByUserRes, error)

type Storer

type Storer interface {
	GetAllProducts(userID uint32) ([]store.ResultGetAllProducts, error)
}

Jump to

Keyboard shortcuts

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