Documentation ¶
Overview ¶
Package server defines the routes for this service, as gRPC methods.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct{}
Server contains the "routes" of this service. That are
func (*Server) VerifyDiscount ¶
func (s *Server) VerifyDiscount(ctx context.Context, form *protocols.VerifyDiscountForm) (info *protocols.DiscountInfo, err error)
VerifyDiscount checks the available discount of a product, for a specified user. It gives at max 10% if it's Black Friday, and 5% if it's only the user Birthday.
Click to show internal directories.
Click to hide internal directories.