Documentation
¶
Index ¶
- Constants
- Variables
- func ChangeProfile(ctx iris.Context)
- func ConnectDB()
- func DisconnectDb()
- func GetFriendsInfo(ctx iris.Context)
- func GetImg(ctx iris.Context)
- func GetMatch(ctx iris.Context)
- func GetUser(ctx iris.Context)
- func Login(ctx iris.Context)
- func Match(ctx iris.Context)
- func PostImg(ctx iris.Context)
- func Register(ctx iris.Context)
- type MatchInfo
- type Message
- type PrivateTask
- type RtMsg
- type TaskQueue
- type TogetherTask
- type User
Constants ¶
View Source
const FilePath = "./img/"
View Source
const URLPath = "/img/"
Variables ¶
View Source
var Client *mongo.Client
Functions ¶
func ChangeProfile ¶
func DisconnectDb ¶
func DisconnectDb()
func GetFriendsInfo ¶
Types ¶
type PrivateTask ¶
type TogetherTask ¶
type User ¶
type User struct { Username string `json:"username"` Email string `json:"email"` Mobile string `json:"mobile"` Password string `json:"password"` Age string `json:"age"` Bio string `json:"bio"` Constellation string `json:"constellation"` Birthday string `json:"birthday"` Sex string `json:"sex"` ImgPath string `json:"img_path"` TogetherTasks []TogetherTask `json:"TogetherTasks"` PrivateTasks []PrivateTask `json:"PrivateTasks"` Friends []string `json:"Friends"` Messages []Message `json:"Messages"` Partner string `json:"partner"` CurrentTaskId int `json:"CurrentTaskId"` }
Click to show internal directories.
Click to hide internal directories.