Documentation ¶
Index ¶
- Variables
- func CheckFollow(w http.ResponseWriter, r *http.Request)
- func DeleteFollow(w http.ResponseWriter, r *http.Request)
- func DeleteMsg(w http.ResponseWriter, r *http.Request)
- func GetAvatar(w http.ResponseWriter, r *http.Request)
- func GetBanner(w http.ResponseWriter, r *http.Request)
- func GetFollowersMsg(w http.ResponseWriter, r *http.Request)
- func GetUsers(w http.ResponseWriter, r *http.Request)
- func Login(w http.ResponseWriter, r *http.Request)
- func ModifyProfile(w http.ResponseWriter, r *http.Request)
- func NewFollow(w http.ResponseWriter, r *http.Request)
- func ProcessToken(tk string) (*models.Claim, bool, string, error)
- func Profile(w http.ResponseWriter, r *http.Request)
- func ReadMsg(w http.ResponseWriter, r *http.Request)
- func RecordMsg(w http.ResponseWriter, r *http.Request)
- func SignUp(w http.ResponseWriter, r *http.Request)
- func UploadAvatar(w http.ResponseWriter, r *http.Request)
- func UploadBanner(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
var Email string
Email value used on all endpoints.
var IDUser string
IDUser Returned ID from the model, which will be used on all endpoints.
Functions ¶
func CheckFollow ¶
func CheckFollow(w http.ResponseWriter, r *http.Request)
CheckFollow Check for relation beetween two users in database.
func DeleteFollow ¶
func DeleteFollow(w http.ResponseWriter, r *http.Request)
DeleteFollow Delete a specific relation.
func DeleteMsg ¶
func DeleteMsg(w http.ResponseWriter, r *http.Request)
DeleteMsg Delete a specific message.
func GetAvatar ¶
func GetAvatar(w http.ResponseWriter, r *http.Request)
GetAvatar sends avatar to HTTP.
func GetBanner ¶
func GetBanner(w http.ResponseWriter, r *http.Request)
GetBanner sends banner to HTTP.
func GetFollowersMsg ¶
func GetFollowersMsg(w http.ResponseWriter, r *http.Request)
GetFollowersMsg Get all messages from my followers.
func GetUsers ¶
func GetUsers(w http.ResponseWriter, r *http.Request)
GetUsers Get a list with all users.
func ModifyProfile ¶
func ModifyProfile(w http.ResponseWriter, r *http.Request)
ModifyProfile modify a user's profile.
func NewFollow ¶
func NewFollow(w http.ResponseWriter, r *http.Request)
NewFollow register a new relation between two users,
func ProcessToken ¶
ProcessToken Function to manage the token.
func Profile ¶
func Profile(w http.ResponseWriter, r *http.Request)
Profile extract values from a profile.
func RecordMsg ¶
func RecordMsg(w http.ResponseWriter, r *http.Request)
RecordMsg record a message in database.
func SignUp ¶
func SignUp(w http.ResponseWriter, r *http.Request)
SignUp Function to register a user in database.
func UploadAvatar ¶
func UploadAvatar(w http.ResponseWriter, r *http.Request)
UploadAvatar upload avatar to server.
func UploadBanner ¶
func UploadBanner(w http.ResponseWriter, r *http.Request)
UploadBanner upload banner to server.
Types ¶
This section is empty.