controllers

package
v0.0.0-...-470840f Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMessage

func AddMessage(c *gin.Context)

func CreateUser

func CreateUser(username string, email string, password string)

func Follow

func Follow(c *gin.Context)

func GetFollower

func GetFollower(follower uint, following uint) bool

func GetMessages

func GetMessages(user string, page string) []map[string]interface{}

func GetUser

func GetUser(username string) model.User

func Hash

func Hash(password string) string

func LimitMessages

func LimitMessages(page string) (int, int)

func Login

func Login(c *gin.Context)

func LoginPage

func LoginPage(c *gin.Context)

func Logout

func Logout(c *gin.Context)

func PasswordCompare

func PasswordCompare(salt string, password string, hashedPassword string) error

func Register

func Register(c *gin.Context)

func Salt

func Salt() string

func SignUp

func SignUp(c *gin.Context)

func Timeline

func Timeline(c *gin.Context)

func Unfollow

func Unfollow(c *gin.Context)

func UserTimeline

func UserTimeline(c *gin.Context)

func ValidEmail

func ValidEmail(email string) bool

func ValidRegistration

func ValidRegistration(c *gin.Context, username string, email string, password1 string, password2 string) bool

func ValidUser

func ValidUser(username string, password string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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