Documentation ¶
Index ¶
- func GetClientDN(request *http.Request) string
- func GetClientIP(request *http.Request) string
- func GetClientName(request *http.Request) string
- func GetClientRoles(request *http.Request) []string
- type Response
- type Server
- func (s *Server) CheckKeyAccess(request *http.Request, keyName string) *config.KeyConfig
- func (s *Server) Close() error
- func (s *Server) Healthy(request *http.Request) bool
- func (s *Server) LogError(request *http.Request, err interface{}, traceback []byte) Response
- func (s *Server) Logf(format string, args ...interface{})
- func (s *Server) Logr(request *http.Request, format string, args ...interface{})
- func (s *Server) ReopenLogger() error
- func (s *Server) ServeHTTP(writer http.ResponseWriter, request *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClientDN ¶
func GetClientIP ¶
func GetClientName ¶
func GetClientRoles ¶
Types ¶
type Response ¶
var AccessDeniedResponse Response = &bytesResponse{ StatusCode: http.StatusForbidden, ContentType: "text/plain", Body: []byte("Access denied\r\n"), }
func BytesResponse ¶
func ErrorResponse ¶
func JSONResponse ¶
func StringResponse ¶
type Server ¶
type Server struct { Config *config.Config ErrorLog *log.Logger Closed <-chan bool // contains filtered or unexported fields }
func (*Server) CheckKeyAccess ¶
func (*Server) ReopenLogger ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.