Documentation
¶
Index ¶
Constants ¶
View Source
const ( MessagePageSize = 20 MinOffset = 0 )
Variables ¶
View Source
var DB *runner.DB
DB is the database instance used be the models
Functions ¶
Types ¶
type Message ¶
type Message struct {
ID int64 `db:"id" json:"id"`
Content string `db:"message" json:"content"`
User string `db:"username" json:"user"`
Key string `db:"channel_key" json:"channel_key"`
Time int64 `db:"time" json:"time"`
}
func NewMessage ¶
type User ¶
type User struct {
ID int64 `db:"id" json:"id"`
Username string `db:"username" json:"username"`
Password string `db:"password" json:"-"`
Email string `db:"email" json:"email"`
}
User is someone with an account on Big Room
Click to show internal directories.
Click to hide internal directories.