routers

package
v0.0.0-...-e7d5e60 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2020 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Email string

Email value used on all endpoints.

View Source
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 Login

func Login(w http.ResponseWriter, r *http.Request)

Login Do login.

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

func ProcessToken(tk string) (*models.Claim, bool, string, error)

ProcessToken Function to manage the token.

func Profile

func Profile(w http.ResponseWriter, r *http.Request)

Profile extract values from a profile.

func ReadMsg

func ReadMsg(w http.ResponseWriter, r *http.Request)

ReadMsg read messages.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL