grpc-server-fahrenheit

command module
v0.0.0-...-e38139c Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: MIT Imports: 16 Imported by: 0

README

grpc-server-fahrenheit

gRPC server for celsuis/fahrenheit conversion

API

See API messages for message formats referenced here

Health

Health proto

grpc_health_v1 library

grpc_health_v1.HealthClient's Check method is used for healthcheck HealthClient's Watch is not currently used as server doesn't expose streaming APIs

C2F

converts celsius to fahrenheit

input

ConversionMsg

output

ConversionMsg

F2C

converts fahrenheit to celsius

input

ConversionMsg

output

ConversionMsg

API messages

  • NoParamsMsg is an empty message
  • HealthMsg contains bool health
  • ConversionMsg contains double number

Build

Prerequisites:
  • standard Docker installation
  • standard gRPC installation
building
  • run 'source ./env'
  • either create a db with 'make create_db', or start it if it's been created with 'make start_db'
  • run 'make'

Run

'make run' from terminal

Unit tests

'make test' from terminal for unit tests

Integration tests

If not ran already, run steps for build and run. In another terminal, navigate to directory containing Makefile, then 'source ./env', then 'make integration'

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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