fix: rename model PomodoroClient
to GoTomatoClient
This commit is contained in:
parent
b374ee8aff
commit
b06fac60d5
2 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ import (
|
||||||
GoTomato "git.smsvc.net/pomodoro/GoTomato/pkg/models"
|
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) {
|
func (c Client) sendClientCommand(msg GoTomato.ClientCommand) {
|
||||||
messageBytes, err := json.Marshal(msg)
|
messageBytes, err := json.Marshal(msg)
|
||||||
|
|
|
@ -3,7 +3,7 @@ package models
|
||||||
import "github.com/gorilla/websocket"
|
import "github.com/gorilla/websocket"
|
||||||
|
|
||||||
// Represents a websocket client
|
// Represents a websocket client
|
||||||
type PomodoroClient struct {
|
type GoTomatoClient struct {
|
||||||
Conn *websocket.Conn // The websocket connection of the client
|
Conn *websocket.Conn // The websocket connection of the client
|
||||||
Password string // Pomodoro password
|
Password string // Pomodoro password
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue