config

package
v0.0.0-...-c369992 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllSessions

func AllSessions(c *gin.Context) (interface{}, interface{})

AllSessions function to return all the sessions

func DB

func DB() *sql.DB

DB function

func Err

func Err(err interface{})

Err Log

func Get

func Get(id interface{}, what string) string

Get function to get anything of user with ID

func GetSession

func GetSession(c *gin.Context) *sessions.Session

GetSession to return the session

func IsFollowing

func IsFollowing(by string, to string) bool

IsFollowing route

func LikedOrNot

func LikedOrNot(post int, user interface{}) bool

LikedOrNot helper

func MakeTimestamp

func MakeTimestamp() int64

MakeTimestamp function

func MeOrNot

func MeOrNot(c *gin.Context, user string) bool

MeOrNot function to checked whether it's me or not

func NoOfFollowers

func NoOfFollowers(user int) int

NoOfFollowers helper

func UsernameDecider

func UsernameDecider(user int, session string) string

UsernameDecider Helper

Types

This section is empty.

Jump to

Keyboard shortcuts

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