api

package
v0.0.0-...-34026e2 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const API_CALL string = "http://api.openweathermap.org/data/2.5/weather?q=%s&appid=%s&units=metric"

Variables

This section is empty.

Functions

func CreateJWT

func CreateJWT(username string) (error, string)

func DeleteJWT

func DeleteJWT(c echo.Context)

func GetClaim

func GetClaim(c echo.Context) string

func LogOut

func LogOut(c echo.Context) error

func Render

func Render(c echo.Context, component templ.Component) error

func SetUpRoutes

func SetUpRoutes(app *echo.Echo, dbh *DbHandler)

func ShowAbout

func ShowAbout(c echo.Context) error

func ShowAccount

func ShowAccount(c echo.Context) error

func ShowHome

func ShowHome(c echo.Context) error

func ShowSchedule

func ShowSchedule(c echo.Context) error

func ShowSignIn

func ShowSignIn(c echo.Context) error

func ShowSignUp

func ShowSignUp(c echo.Context) error

func ShowTTT

func ShowTTT(c echo.Context) error

func UnAuthRedirect

func UnAuthRedirect(next echo.HandlerFunc) echo.HandlerFunc

Types

type DbHandler

type DbHandler struct {
	// contains filtered or unexported fields
}

func NewDbHandler

func NewDbHandler(db *sql.DB) *DbHandler

func (*DbHandler) DeleteUser

func (dbh *DbHandler) DeleteUser(c echo.Context) error

func (*DbHandler) SignIn

func (dbh *DbHandler) SignIn(c echo.Context) error

func (*DbHandler) SignUp

func (dbh *DbHandler) SignUp(c echo.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL