Documentation ¶
Overview ¶
Package server contains implementation of REST API server (HTTPServer) for the LDAP proxy.
Generated documentation is available at: https://godoc.org/github.com/RedHatInsights/insights-operator-ldapauth/server
Documentation in literate-programming-style is available at: https://redhatinsights.github.io/insights-operator-ldapauth/packages/server/server.html
Index ¶
Constants ¶
This section is empty.
Variables ¶
var APIPrefix = env.GetEnv("CONTROLLER_PREFIX", "/api/v1/")
APIPrefix is appended before all REST API endpoint addresses
var OkStatus = Status{ Status: "ok", }
OkStatus prepared successful response
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { Address string LDAP string Proxy string ProxyPrefix string Transport http.RoundTripper }
Server basic configuration of server
func (*Server) HandleHTTP ¶
func (s *Server) HandleHTTP(w http.ResponseWriter, req *http.Request)
HandleHTTP handle all routes, used for proxying them to controller
func (*Server) Initialize ¶
func (s *Server) Initialize()
Initialize main function that start server
func (*Server) JWTAuthentication ¶
JWTAuthentication - middleware for authenticate user by Token