package
Version:
v0.0.0-...-9058691
Opens a new window with list of versions in this module.
Published: Sep 2, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type BroadcastMessage struct {
Message map[string]interface{} `json:"message"`
RoomID string `json:"room_id"`
Client *websocket.Conn `json:"conn"`
}
type Chat struct {
ID string `json:"id"`
From string `json:"from"`
To string `json:"to"`
Msg string `json:"msg"`
MsgType string `json:"msg_type"`
Timestamp int64 `json:"timestamp"`
}
type ContactList struct {
Username string `json:"username"`
LastActivity int64 `json:"last_activity"`
}
type Message struct {
Type string `json:"type"`
User string `json:"user"`
Chat Chat `json:"chat"`
}
type Resource struct {
Id string `json:"id"`
Name string `json:"name"`
}
type ResourceList struct {
ResourceList []Resource `json:"resource"`
}
type User struct {
Id string `gorm:"primary_key"`
Username string `gorm:"not null;unique;type:varchar(20)" json:"username"`
Email string `gorm:"not null;unique;type:varchar(32)" json:"email"`
Password string `gorm:"not null" json:"password"`
Limit int `gorm:"not null" json:"limit"`
}
type UsersList struct {
TotalCount int64 `json:"total_count"`
TotalPages int64 `json:"total_pages"`
Page int64 `json:"page"`
Size int64 `json:"size"`
HasMore bool `json:"has_more"`
Users []*User `json:"users"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.