Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ID uint `gorm:"primaryKey"` Key string `gorm:"column:key"` Value string `gorm:"column:value"` }
Config model
type FollowRequest ¶
FollowRequest defines a follow request
type Log ¶
type Log struct { Message string Data interface{} AdditionalInfo interface{} }
Log represents a log message object
type LoginRequest ¶
type Message ¶
type Message struct { MessageID uint `gorm:"column:message_id;primaryKey"` AuthorID uint `gorm:"column:author_id"` Text string `gorm:"column:text"` PubDate int64 `gorm:"column:pub_date"` Flagged int `gorm:"column:flagged"` }
Message model structure
type MessageDto ¶
type MessageRequest ¶
type MessageRequest struct {
Content string `json:"content"`
}
MessageRequest defines a API POST message
type MessageResponse ¶
type MessageResponse struct { Content string `json:"content"` PubDate int64 `json:"pub_date"` User string `json:"user"` }
MessageResponse defines a message response
type MessageViewModel ¶
type PageData ¶
type PageData map[string]interface{}
PageData defines data on page whatever and request
type RegisterRequest ¶
type RegisterRequest struct { Username string `json:"username"` Email string `json:"email"` Password string `json:"pwd"` }
RegisterRequest represents a register request
Click to show internal directories.
Click to hide internal directories.