From 32770ae82946416e3c48c6f14da7af5bb872b088 Mon Sep 17 00:00:00 2001 From: Ritesh Koushik Date: Thu, 8 Jan 2026 07:14:17 +0530 Subject: [PATCH 1/2] docs: Add bruno endpoints for gate management --- bruno/hospitality (all)/LoginHospitality.bru | 2 +- bruno/hospitality-gate/checkIn.bru | 2 +- bruno/hospitality-gate/checkInStatus.bru | 2 +- bruno/hospitality-gate/checkOut.bru | 2 +- bruno/hospitality-gate/checkOutStatus.bru | 2 +- cache/events.go | 14 ++++++++++++++ 6 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 cache/events.go diff --git a/bruno/hospitality (all)/LoginHospitality.bru b/bruno/hospitality (all)/LoginHospitality.bru index 6f6f4c9c..18a7ecd3 100644 --- a/bruno/hospitality (all)/LoginHospitality.bru +++ b/bruno/hospitality (all)/LoginHospitality.bru @@ -12,7 +12,7 @@ post { body:json { { - "email": "ritesh.gate@amrita.edu", + "email": "web.gate@amrita.edu", "password": "ff7bd97b1a7789ddd2775122fd6817f3173672da9f802ceec57f284325bf589f" } } diff --git a/bruno/hospitality-gate/checkIn.bru b/bruno/hospitality-gate/checkIn.bru index 27ba81a2..02bac7d6 100644 --- a/bruno/hospitality-gate/checkIn.bru +++ b/bruno/hospitality-gate/checkIn.bru @@ -11,7 +11,7 @@ post { } params:path { - hospId: + hospId: A1234CBE } settings { diff --git a/bruno/hospitality-gate/checkInStatus.bru b/bruno/hospitality-gate/checkInStatus.bru index 972160c4..39636d60 100644 --- a/bruno/hospitality-gate/checkInStatus.bru +++ b/bruno/hospitality-gate/checkInStatus.bru @@ -11,7 +11,7 @@ get { } params:path { - hospId: + hospId: A1234CBE } settings { diff --git a/bruno/hospitality-gate/checkOut.bru b/bruno/hospitality-gate/checkOut.bru index ab5d368f..9bf0d74f 100644 --- a/bruno/hospitality-gate/checkOut.bru +++ b/bruno/hospitality-gate/checkOut.bru @@ -11,7 +11,7 @@ post { } params:path { - hospId: + hospId: A1234CBE } settings { diff --git a/bruno/hospitality-gate/checkOutStatus.bru b/bruno/hospitality-gate/checkOutStatus.bru index 2b475b84..c25c7f9a 100644 --- a/bruno/hospitality-gate/checkOutStatus.bru +++ b/bruno/hospitality-gate/checkOutStatus.bru @@ -11,7 +11,7 @@ get { } params:path { - hospId: + hospId: A1234CBE } settings { diff --git a/cache/events.go b/cache/events.go new file mode 100644 index 00000000..c6b2729e --- /dev/null +++ b/cache/events.go @@ -0,0 +1,14 @@ +package cache + +import "github.com/google/uuid" + +func CacheAllEvents() (bool, error) { + return true, nil +} + +func FetchAllEventsCache() { +} + +func EvictEventCache(eventId uuid.UUID) (bool, error) { + return false, nil +} From 3ffea7ba40add210d6a9938754b6b873b84fa7f5 Mon Sep 17 00:00:00 2001 From: Ritesh Koushik Date: Thu, 8 Jan 2026 08:11:18 +0530 Subject: [PATCH 2/2] clear cache --- cache/events.go | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 cache/events.go diff --git a/cache/events.go b/cache/events.go deleted file mode 100644 index c6b2729e..00000000 --- a/cache/events.go +++ /dev/null @@ -1,14 +0,0 @@ -package cache - -import "github.com/google/uuid" - -func CacheAllEvents() (bool, error) { - return true, nil -} - -func FetchAllEventsCache() { -} - -func EvictEventCache(eventId uuid.UUID) (bool, error) { - return false, nil -}