From b06fac60d547805d90bbf235f7c85d7df7089bb0 Mon Sep 17 00:00:00 2001 From: Sebastian Mark Date: Wed, 30 Oct 2024 09:03:14 +0100 Subject: [PATCH] fix: rename model `PomodoroClient` to `GoTomatoClient` --- internal/websocket/send.go | 2 +- pkg/models/client.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/websocket/send.go b/internal/websocket/send.go index 650e24a..2d891ba 100644 --- a/internal/websocket/send.go +++ b/internal/websocket/send.go @@ -9,7 +9,7 @@ import ( GoTomato "git.smsvc.net/pomodoro/GoTomato/pkg/models" ) -type Client ChronoTomato.PomodoroClient // New websocket client +type Client ChronoTomato.GoTomatoClient // New websocket client func (c Client) sendClientCommand(msg GoTomato.ClientCommand) { messageBytes, err := json.Marshal(msg) diff --git a/pkg/models/client.go b/pkg/models/client.go index cefc095..9cf8436 100644 --- a/pkg/models/client.go +++ b/pkg/models/client.go @@ -3,7 +3,7 @@ package models import "github.com/gorilla/websocket" // Represents a websocket client -type PomodoroClient struct { +type GoTomatoClient struct { Conn *websocket.Conn // The websocket connection of the client Password string // Pomodoro password }