Documentation ¶
Index ¶
- func AllSessions(c *gin.Context) (interface{}, interface{})
- func DB() *sql.DB
- func Err(err interface{})
- func Get(id interface{}, what string) string
- func GetSession(c *gin.Context) *sessions.Session
- func IsFollowing(by string, to string) bool
- func LikedOrNot(post int, user interface{}) bool
- func MakeTimestamp() int64
- func MeOrNot(c *gin.Context, user string) bool
- func NoOfFollowers(user int) int
- func UsernameDecider(user int, session string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllSessions ¶
AllSessions function to return all the sessions
func GetSession ¶
GetSession to return the session
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.