userJoinedEvent.go 287 B

1234567891011
  1. package models
  2. import "time"
  3. // UserJoinedEvent represents an event when a user joins the chat.
  4. type UserJoinedEvent struct {
  5. Username string `json:"username"`
  6. Type EventType `json:"type"`
  7. ID string `json:"id"`
  8. Timestamp time.Time `json:"timestamp,omitempty"`
  9. }