Documentation
¶
Index ¶
- Variables
- type Config
- type Handler
- func (h *Handler) ChangePassword(c echo.Context) error
- func (h *Handler) ChangePasswordWithToken(c echo.Context) error
- func (h *Handler) LoadRoutes(e *echo.Echo, templates *embeded.Template)
- func (h *Handler) ResendSignupToken(c echo.Context) error
- func (h *Handler) ResetPassword(c echo.Context) error
- func (h *Handler) ResetPasswordToken(c echo.Context) error
- func (h *Handler) Signin(c echo.Context) error
- func (h *Handler) Signout(c echo.Context) error
- func (h *Handler) Signup(c echo.Context) error
- func (h *Handler) SignupToken(c echo.Context) error
- type Server
- type SessionData
- type SessionManager
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
AppName string
Domain string
Port string
BindAddress string
SessionsDSN string
ReadTimeout time.Duration
WriteTimeout time.Duration
IdleTimeout time.Duration
ShutdownTimeout time.Duration
CORSAllowedOrigins []string
}
func (Config) FullDomain ¶
func (Config) IsLocalhost ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) ChangePasswordWithToken ¶
func (*Handler) LoadRoutes ¶
type SessionData ¶
type SessionData struct {
AppName string
Email string
Name string
ErrMsg string
FlashMsg string
CSRFToken string
Fields any
}
func (SessionData) SignedIn ¶
func (sd SessionData) SignedIn() bool
type SessionManager ¶
type SessionManager struct {
// contains filtered or unexported fields
}
func (*SessionManager) Close ¶
func (sm *SessionManager) Close() error
func (*SessionManager) SessionManager ¶
func (sm *SessionManager) SessionManager() *scs.SessionManager
Click to show internal directories.
Click to hide internal directories.