From 27b125f6a096cc5dc4244424732560ac160a3f1c Mon Sep 17 00:00:00 2001 From: Andrew Scott Date: Tue, 26 Jul 2022 03:42:19 -0400 Subject: [PATCH] Enum for selecting units --- proto/units.proto | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 proto/units.proto diff --git a/proto/units.proto b/proto/units.proto new file mode 100644 index 0000000..5a62d99 --- /dev/null +++ b/proto/units.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +package weather; + +option go_package = "codeberg.org/andcscott/OpenWeatherMap-gRPC-API/proto"; + +enum Units { + UNITS_UNSPECIFIED = 0; + UNITS_STANDARD = 1; + UNITS_METRIC = 2; + UNITS_IMPERIAL = 3; +}