Documentation
¶
Index ¶
- func CheckAuthCookie(cookies []*http.Cookie, conf *configuration.GlobalConf, t *testing.T) *jwt.Token
- func CleanDB(db *sql.DB)
- func Conf() *configuration.GlobalConf
- func CreateToken(secret string, exp time.Time, id uuid.UUID, t *testing.T) string
- func ExtractToken(tokenString string, jwtSecret string) (*jwt.Token, error)
- func GetCookieByName(cookies []*http.Cookie, name string) *http.Cookie
- func InsertPlan(plan *model.Plan, db *sql.DB)
- func InsertPlanSession(planSession *model.PlanSession, db *sql.DB)
- func InsertUser(user *model.User, db *sql.DB)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAuthCookie ¶
func CheckAuthCookie(cookies []*http.Cookie, conf *configuration.GlobalConf, t *testing.T) *jwt.Token
func Conf ¶
func Conf() *configuration.GlobalConf
func CreateToken ¶
func ExtractToken ¶
func InsertPlanSession ¶
func InsertPlanSession(planSession *model.PlanSession, db *sql.DB)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.