handler

package
v0.0.0-...-e662f33 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: Apache-2.0 Imports: 14 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 {
	productPb.UnimplementedProductServiceServer

	Pg         *gorm.DB
	AuthClient *client.AuthClient
}

func NewServer

func NewServer() (*Server, error)

func (*Server) Create

func (*Server) Delete

func (*Server) GetById

func (s *Server) GetById(ctx context.Context, in *productPb.ProductId) (*productPb.Product, error)

func (*Server) GetBySlug

func (*Server) GetByStoreId

func (s *Server) GetByStoreId(ctx context.Context, in *productPb.StoreId) (*productPb.ManyProductResponse, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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