Documentation ¶
Index ¶
- Constants
- type Server
- func (s *Server) AddUser(w http.ResponseWriter, r *http.Request)
- func (s *Server) AddUserAttempt(w http.ResponseWriter, r *http.Request)
- func (s *Server) AddUserPage(w http.ResponseWriter, r *http.Request)
- func (s *Server) ChangePassword(w http.ResponseWriter, r *http.Request)
- func (s *Server) ChangePasswordAttempt(w http.ResponseWriter, r *http.Request)
- func (s *Server) ChangePasswordPage(w http.ResponseWriter, r *http.Request)
- func (s *Server) ListenAndServerHTTPS() error
- func (s *Server) Login(w http.ResponseWriter, r *http.Request)
- func (s *Server) LoginAttempt(w http.ResponseWriter, r *http.Request)
- func (s *Server) LoginPage(w http.ResponseWriter, r *http.Request)
- func (s *Server) Logout(w http.ResponseWriter, r *http.Request)
- func (s *Server) RootPage(w http.ResponseWriter, r *http.Request)
- type Session
- type Sessions
Constants ¶
View Source
const ( CookieName = "DUPExample" SessionContextKey = "sessions" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) AddUserAttempt ¶
func (s *Server) AddUserAttempt(w http.ResponseWriter, r *http.Request)
func (*Server) AddUserPage ¶
func (s *Server) AddUserPage(w http.ResponseWriter, r *http.Request)
func (*Server) ChangePassword ¶
func (s *Server) ChangePassword(w http.ResponseWriter, r *http.Request)
func (*Server) ChangePasswordAttempt ¶
func (s *Server) ChangePasswordAttempt(w http.ResponseWriter, r *http.Request)
func (*Server) ChangePasswordPage ¶
func (s *Server) ChangePasswordPage(w http.ResponseWriter, r *http.Request)
func (*Server) ListenAndServerHTTPS ¶
func (*Server) LoginAttempt ¶
func (s *Server) LoginAttempt(w http.ResponseWriter, r *http.Request)
type Sessions ¶
type Sessions struct {
// contains filtered or unexported fields
}
func NewSessions ¶
Click to show internal directories.
Click to hide internal directories.