summaryrefslogtreecommitdiff
path: root/srv/chat/chat.go
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2021-08-18 18:13:18 -0600
committerBrian Picciano <mediocregopher@gmail.com>2021-08-18 18:13:44 -0600
commita9d8aa2591cd03fe1a9da72bab8d311e4840e8f1 (patch)
tree98a32eb3a2719f10dc0d55a206851e3793e61388 /srv/chat/chat.go
parentbec64827d19d64aae86ca3d2b26de800b427a540 (diff)
implemented basic userID generation
Diffstat (limited to 'srv/chat/chat.go')
-rw-r--r--srv/chat/chat.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/srv/chat/chat.go b/srv/chat/chat.go
index 44449cd..ae305ac 100644
--- a/srv/chat/chat.go
+++ b/srv/chat/chat.go
@@ -29,17 +29,6 @@ var (
errInvalidMessageID = ErrInvalidArg{Err: errors.New("invalid Message ID")}
)
-// UserID uniquely identifies an individual user who has posted a message in a
-// Room.
-type UserID struct {
-
- // Name will be the user's chosen display name.
- Name string `json:"name"`
-
- // Hash will be a hex string generated from a secret only the user knows.
- Hash string `json:"id"`
-}
-
// Message describes a message which has been posted to a Room.
type Message struct {
ID string `json:"id"`