routers

package
v0.0.0-...-7fb751a Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Email string

Email value used in all EndPoints

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

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

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 ReadPosts

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

ReadPosts reads the posts

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.

Jump to

Keyboard shortcuts

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