From c43e9bd3ec83dea0b08446d6dddd8e949bbbc799 Mon Sep 17 00:00:00 2001 From: Liam Burnand Date: Mon, 18 Dec 2023 14:33:11 +0000 Subject: [PATCH] Adding common messages --- common/go.mod | 3 +++ common/wsMessages/wsMessages.go | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100644 common/go.mod create mode 100644 common/wsMessages/wsMessages.go diff --git a/common/go.mod b/common/go.mod new file mode 100644 index 0000000..8b8488b --- /dev/null +++ b/common/go.mod @@ -0,0 +1,3 @@ +module github.com/ystv/streamer/common + +go 1.21 diff --git a/common/wsMessages/wsMessages.go b/common/wsMessages/wsMessages.go new file mode 100644 index 0000000..db89c9c --- /dev/null +++ b/common/wsMessages/wsMessages.go @@ -0,0 +1,11 @@ +package wsMessages + +type WSMessage string + +var ( + Acknowledged WSMessage = "ACKNOWLEDGED" +) + +func (r WSMessage) String() string { + return string(r) +}