BareRTC/pkg/messages.go

13 lines
280 B
Go
Raw Normal View History

2023-01-11 06:38:48 +00:00
package barertc
type Message struct {
Action string `json:"action,omitempty"`
Username string `json:"username"`
Message string `json:"message"`
}
const (
ActionLogin = "login" // post the username to backend
ActionMessage = "message" // post a message to the room
)