Documentation ¶
Index ¶
- func ChangeRoutePath(request *http.Request, query url.Values, pairs ...string) string
- func Clone(v url.Values) url.Values
- func Condition(condition bool, trueStr string, falseStr string) string
- func CreateUser(user *data.User, db *gorm.DB) (int64, error)
- func FlatToMap[T comparable](flat []T) map[T]T
- func GetUserIdByEmail(email string, user *data.User, db *gorm.DB) (int64, error)
- func GetUserInfoById(userId int, user *data.User, db *gorm.DB) (int64, error)
- func GetUserInfoFromGithub(user *data.User, data map[string]map[string]interface{})
- func GetUserInfoFromSession(user *data.User, session *sessions.Session, db *gorm.DB) (int64, error)
- func LogIn(user *data.User, db *gorm.DB) (int64, error)
- func MapToFlat[T comparable](input map[T]T, merge map[T]T) []T
- func MigrateSchemas(db *gorm.DB)
- func OAuth(session *sessions.Session, service string, ...)
- func RenderDataOrRedirect(w http.ResponseWriter, r *http.Request, data interface{}, content string, ...)
- func SignIn(user *data.User, translator *i18n.Translator, session *sessions.Session, ...) error
- func SignOut(session *sessions.Session)
- func SignUp(user *data.User, translator *i18n.Translator, session *sessions.Session, ...) error
- func StringToArray(param string) []string
- func ToggleQuery(v url.Values, key string) string
- func ViewData(w http.ResponseWriter, r *http.Request) (lang string, ajax string, init string, query url.Values, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeRoutePath ¶
func FlatToMap ¶
func FlatToMap[T comparable](flat []T) map[T]T
func GetUserIdByEmail ¶
func GetUserInfoById ¶
func GetUserInfoFromGithub ¶
func GetUserInfoFromSession ¶
func MapToFlat ¶
func MapToFlat[T comparable](input map[T]T, merge map[T]T) []T
func MigrateSchemas ¶
func RenderDataOrRedirect ¶
func StringToArray ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.