Skip to content

AmitKannaujiya/GoClientGrpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Ticket Booking client (GRPC API for Train Ticket Booking Client)

This Repo will have a golang client for ticket booking grpc server .

List of features

Purchase Ticket PurchaseTicket

  • Call Booking for User (firstName, lastName, Section A or B, Price, Source, Destination)
  • Store Booking history in memory

Generate Booking Receipt

  • Get Booking details against ReceiptId

Get List of Users for each sections

  • Send List of Users and booked seats section wise
  • Fetch and send details of User Seat mapping

Modify Seat of User

  • Modify the seat of user if it is available
  • Update the booking

Remove User from Train (Cancel Booking)

  • Modify the seat of user if it is available
  • Update the booking

Running Locally using Docker

cd <root path>
go run main.go

access site on: http://localhost:5001/

Documentation

TODO

  • Update command code with smaller modules
  • Add tests for more cases
  • Add tests for helpers functions
  • Store results of API
  • Add documentation
  • Add Authentication
  • Update Logging

About

This Repo will have a golang client for grpc server .

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages