userHelpers

package
v0.0.0-...-775be8f Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeOrderStatus

func ChangeOrderStatus(orderId primitive.ObjectID)

func CheckLogin

func CheckLogin(session *sessions.Session) bool

func CheckUserLogin

func CheckUserLogin(session *sessions.Session) []byte

checking if user already logedIn

func DoUserLogin

func DoUserLogin(body []byte) ([]byte, primitive.ObjectID)

user login

func DoUserSignUp

func DoUserSignUp(body []byte) []byte

user singup

func GetOrders

func GetOrders(userId primitive.ObjectID) []map[string]interface{}

func GetUserData

func GetUserData(session *sessions.Session) []byte

func GetUserId

func GetUserId(session *sessions.Session) primitive.ObjectID

func IsEmailAvailble

func IsEmailAvailble(email string) bool

checking is email is availble

func NotLoggedInResponse

func NotLoggedInResponse() []byte

func PlaceOrder

func PlaceOrder(order map[string]interface{}, userId primitive.ObjectID) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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