vegsalessystem-in-rpc

command module
v0.0.0-...-0cb0720 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: CC0-1.0 Imports: 9 Imported by: 0

README

VegSalesSystem-in-RPC

A Vegetable sales system in Go language and Remote Procedure Calls (RPC)

Server will maintain a file which keeps records of different available vegetables including price per kg and available amount of kg for each vegetable. The server has following functions.

  1. Query the file and output names of all available vegetables.
  2. Output the price per kg of a given vegetable.
  3. Output the available amount of kg for a given vegetable.
  4. Add new vegetable to the file with price per kg and among of kg.
  5. Update the price or available amount of a given vegetable.

Accordingly, clients can use server functions to do the following tasks.

  1. Receive a list of all available vegetables and display.
  2. Get the price per kg of a given vegetable and display.
  3. Get the available amount of kg of a given vegetable and display.
  4. Send a new vegetable name to the server to be added to the server file.
  5. Send new price or available amount for a given vegetable to be updated in the server file.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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