package
Version:
v0.0.0-...-e384ca1
Opens a new window with list of versions in this module.
Published: Jul 29, 2021
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Chat struct {
Id string `json:"id" db:"id"`
Name string `json:"name" db:"name"`
Users []string `json:"users" db:"users"`
CreatedAt int64 `json:"created_at" db:"created_at"`
LastMessageTime int64 `json:"last_message_time" db:"last_message_time"`
}
type Message struct {
Id string `json:"id" db:"id"`
ChatId string `json:"chat_id" db:"chat_id"`
AuthorId string `json:"author_id" db:"author_id"`
Text string `json:"text" db:"text"`
CreatedAt int64 `json:"created_at" db:"created_at"`
}
type User struct {
Id string `json:"id" db:"id"`
Username string `json:"username" db:"username"`
CreatedAt int64 `json:"created_at" db:"created_at"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.