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. Timestamp time.Time `json:"timestamp,omitempty"`
  6. Username string `json:"username"`
  7. Type EventType `json:"type"`
  8. ID string `json:"id"`
  9. }