Documentation ¶
Index ¶
- func AllSessions(ctx iris.Context) (string, string)
- func DB() *gorm.DB
- func Err(err interface{})
- func FileExists(path string) bool
- func Get(id int, what string) string
- func GetSession(ctx iris.Context) *sessions.Session
- func InitDB()
- func IsFollowing(by string, to string) bool
- func LikedOrNot(post int, user interface{}) bool
- func MakeTimestamp() int64
- func MeOrNot(ctx iris.Context, user int) 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 FileExists ¶
func GetSession ¶
GetSession to return the session
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.