config

package
v0.0.0-...-1303b49 Latest Latest
Warning

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

Go to latest
Published: May 4, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllSessions

func AllSessions(ctx iris.Context) (string, string)

AllSessions function to return all the sessions

func DB

func DB() *gorm.DB

DB function

func Err

func Err(err interface{})

Err Log

func FileExists

func FileExists(path string) bool

func Get

func Get(id int, what string) string

Get function to get anything of user with ID

func GetSession

func GetSession(ctx iris.Context) *sessions.Session

GetSession to return the session

func InitDB

func InitDB()

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(ctx iris.Context, user int) 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