Documentation ¶
Index ¶
- func RewriteRequest(next http.Handler) http.Handler
- type Middleware
- type Server
- func (s *Server) AuthCallbackHandler(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetUserFromCookie(r *http.Request) (*string, error)
- func (s *Server) Logging(next http.Handler) http.Handler
- func (s *Server) LoginHandler(w http.ResponseWriter, r *http.Request)
- func (s *Server) LogoutHandler(w http.ResponseWriter, r *http.Request)
- func (s *Server) Start()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Middleware ¶
func Chain ¶
func Chain(xs ...Middleware) Middleware
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server contains router and handler methods
func (*Server) AuthCallbackHandler ¶
func (s *Server) AuthCallbackHandler(w http.ResponseWriter, r *http.Request)
AuthCallbackHandler Handles auth callback request
func (*Server) GetUserFromCookie ¶
func (*Server) LoginHandler ¶
func (s *Server) LoginHandler(w http.ResponseWriter, r *http.Request)
LoginHandler logs a user in
func (*Server) LogoutHandler ¶
func (s *Server) LogoutHandler(w http.ResponseWriter, r *http.Request)
LogoutHandler logs a user out
Click to show internal directories.
Click to hide internal directories.