From c6437f429ec305d2335c12ecd9fb51943f9ae147 Mon Sep 17 00:00:00 2001 From: steven carpenter Date: Thu, 3 Jul 2025 20:07:18 -0400 Subject: [PATCH] added protobuf and badger deps and wrote proto file for calendar event --- flake.nix | 3 +++ proto/calendar.proto | 15 +++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 proto/calendar.proto diff --git a/flake.nix b/flake.nix index 6645016..98c6e2d 100644 --- a/flake.nix +++ b/flake.nix @@ -61,6 +61,9 @@ gcc go_1_23 nixpkgs-fmt + protobuf + badger + protoc-gen-go ]; env = { CGO_ENABLED = "1"; diff --git a/proto/calendar.proto b/proto/calendar.proto new file mode 100644 index 0000000..6277420 --- /dev/null +++ b/proto/calendar.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; + +package calendar; + +option go_package = "calendar"; + +message Event { + string title = 1; + string description = 2; + int32 year = 3; + int32 month = 4; + int32 day = 5; + int32 start_hour = 6; + int32 end_hour = 7; +}