server

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2019 License: MIT Imports: 5 Imported by: 0

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 New

func New() (s *Server)

New cretes the server, with no needed info.

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.

Directories

Path Synopsis
Package info details information on server.
Package info details information on server.
Package protocols contains different protocols used on this service.
Package protocols contains different protocols used on this service.

Jump to

Keyboard shortcuts

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