grpc

package
v0.0.0-...-0c44e78 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 16 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 {
	Port string

	pb.UnimplementedProductServiceServer
	// contains filtered or unexported fields
}

func NewGRPCServer

func NewGRPCServer(config config.GRPC, productApp app.ProductApplication) *Server

func (*Server) CheckProducts

func (srv *Server) CheckProducts(ctx context.Context, req *pb.CheckProductsRequest) (*pb.CheckProductsResponse, error)

func (*Server) GetProducts

func (srv *Server) GetProducts(ctx context.Context, req *pb.GetProductsRequest) (*pb.GetProductsResponse, error)

func (*Server) GracefulStop

func (srv *Server) GracefulStop()

func (*Server) Run

func (srv *Server) Run() error

Jump to

Keyboard shortcuts

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