grpc

package
v0.0.0-...-5c9c1d6 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(grpcServer *grpc.Server, usecase interfaces.UseCaseInterface)

Types

type OrderServStruct

type OrderServStruct struct {
	pb.UnimplementedOrderServiceServer
	// contains filtered or unexported fields
}

func (*OrderServStruct) CreateOrder

func (srv *OrderServStruct) CreateOrder(ctx context.Context, req *pb.CreateOrderRequest) (*pb.OrderResponse, error)

CreateOrder function creates an order with the supplied data from CreateOrderRequest message of proto

func (*OrderServStruct) DeleteOrder

func (srv *OrderServStruct) DeleteOrder(ctx context.Context, req *pb.DeleteOrderRequest) (*pb.SuccessResponse, error)

DeleteOrder function deletes an order from the database using the supplied id from DeleteOrderRequest message of proto

func (*OrderServStruct) GetOrder

func (srv *OrderServStruct) GetOrder(ctx context.Context, req *pb.GetOrderRequest) (*pb.OrderResponse, error)

GetOrder function retrieves an order from the database using the supplied id from GetOrderRequest message of proto

func (*OrderServStruct) UpdateOrder

func (srv *OrderServStruct) UpdateOrder(ctx context.Context, req *pb.UpdateOrderRequest) (*pb.OrderResponse, error)

UpdateOrder function updates an order in the database using the supplied data from UpdateOrderRequest message of proto

Jump to

Keyboard shortcuts

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