Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FRONTEND string = "http://localhost:5173"
Functions ¶
func SetDatabase ¶
Types ¶
type EventParams ¶
type EventParams = map[string]interface{}
type FlashMessage ¶
type LatestEventsForm ¶
type LatestEventsForm struct {
Number int `json:"number"`
}
type Session ¶
type Session struct {
Userid string `json:"userid" bson:"userid"`
Sessionid string `json:"sessionid" bson:"sessionid"`
Time time.Time `json:"time" bson:"time"`
Data map[string]interface{} `json:"data" bson:"data"`
Flashes []FlashMessage `json:"flashes" bson:"flashes"`
ID primitive.ObjectID `json:"id" bson:"_id"`
}
type SessionResponse ¶
type User ¶
type User struct {
Name string `json:"name" bson:"name"`
Username string `json:"username" bson:"username"`
Role string `json:"role" bson:"role"`
Contact UserContact `json:"contact" bson:"contact"`
Tags []string `json:"tags" bson:"tags"`
Bio string `json:"bio" bson:"bio"`
Security UserSecurity `json:"security" bson:"security"`
Socials []string `json:"socials" bson:"socials"`
ID primitive.ObjectID `json:"id" bson:"_id"`
}
type UserContact ¶
type UserResponse ¶
type UserResponse struct {
User User `json:"user"`
// contains filtered or unexported fields
}
type UserSecurity ¶
Click to show internal directories.
Click to hide internal directories.