Documentation ¶
Index ¶
- Variables
- func ConsultRelation(w http.ResponseWriter, r *http.Request)
- func GetAvatar(w http.ResponseWriter, r *http.Request)
- func GetBanner(w http.ResponseWriter, r *http.Request)
- func HighRelationship(w http.ResponseWriter, r *http.Request)
- func Login(w http.ResponseWriter, r *http.Request)
- func LowRelationship(w http.ResponseWriter, r *http.Request)
- func ModifyProfile(w http.ResponseWriter, r *http.Request)
- func ProcessToken(tk string) (*models.Claim, bool, string, error)
- func ReadFollowersPosts(w http.ResponseWriter, r *http.Request)
- func ReadPosts(w http.ResponseWriter, r *http.Request)
- func RecordPost(w http.ResponseWriter, r *http.Request)
- func Registration(w http.ResponseWriter, r *http.Request)
- func RemovePost(w http.ResponseWriter, r *http.Request)
- func UploadAvatar(w http.ResponseWriter, r *http.Request)
- func UploadBanner(w http.ResponseWriter, r *http.Request)
- func UserList(w http.ResponseWriter, r *http.Request)
- func ViewProfile(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
var Email string
Email value used in all EndPoints
var IDUser string
IDUser is the returned ID of the model, which will be used in all EndPoints
Functions ¶
func ConsultRelation ¶
func ConsultRelation(w http.ResponseWriter, r *http.Request)
ConsultRelation checks the relationship between 2 users
func GetAvatar ¶
func GetAvatar(w http.ResponseWriter, r *http.Request)
GetAvatar sends the avatar to HTTP
func GetBanner ¶
func GetBanner(w http.ResponseWriter, r *http.Request)
GetBanner sends the banner to HTTP
func HighRelationship ¶
func HighRelationship(w http.ResponseWriter, r *http.Request)
HighRelationship registers the relationship between users
func Login ¶
func Login(w http.ResponseWriter, r *http.Request)
Login function is defined to perform the login
func LowRelationship ¶
func LowRelationship(w http.ResponseWriter, r *http.Request)
LowRelationship performs the deletion of the relationship between users
func ModifyProfile ¶
func ModifyProfile(w http.ResponseWriter, r *http.Request)
modifies the user profile
func ProcessToken ¶
ProcessToken token process to extract its values
func ReadFollowersPosts ¶
func ReadFollowersPosts(w http.ResponseWriter, r *http.Request)
ReadFollowersPosts reads the posts of all user followers
func RecordPost ¶
func RecordPost(w http.ResponseWriter, r *http.Request)
RecordPost allows you to record the post in the database
func Registration ¶
func Registration(w http.ResponseWriter, r *http.Request)
Registartion handles the user registartion and calls the bd API to insert the User profile to DB
func RemovePost ¶
func RemovePost(w http.ResponseWriter, r *http.Request)
This removes the user's post
func UploadAvatar ¶
func UploadAvatar(w http.ResponseWriter, r *http.Request)
UploadAvatar is a service to upload avatar to the database
func UploadBanner ¶
func UploadBanner(w http.ResponseWriter, r *http.Request)
UploadBanner is a service to upload banner to the database
func UserList ¶
func UserList(w http.ResponseWriter, r *http.Request)
UserList reads the list of users
func ViewProfile ¶
func ViewProfile(w http.ResponseWriter, r *http.Request)
ViewProfile allows to extract the values of the profile
Types ¶
This section is empty.