Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Port int
}
Config is the configuration for creating a Server instance.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a server that processes the web requested such as authentication webhook.
func (*Server) GracefulStop ¶
func (s *Server) GracefulStop()
GracefulStop stops the server gracefully.
func (*Server) HandleAuth ¶
func (s *Server) HandleAuth(w http.ResponseWriter, r *http.Request)
HandleAuth handles the given authorization webhook request.
Click to show internal directories.
Click to hide internal directories.