Web Server配置管理

    配置管理方法

    1. func (s *Server) DumpRoutesMap()
    2. func (s *Server) EnableAdmin(pattern ...string)
    3. func (s *Server) EnableHTTPS(certFile, keyFile string)
    4. func (s *Server) EnablePprof(pattern ...string)
    5. func (s *Server) GetCookieDomain() string
    6. func (s *Server) GetCookieMaxAge() int
    7. func (s *Server) GetCookiePath() string
    8. func (s *Server) GetLogHandler() LogHandler
    9. func (s *Server) GetLogPath() string
    10. func (s *Server) GetName() string
    11. func (s *Server) GetRouteMap() string
    12. func (s *Server) GetSessionIdName() string
    13. func (s *Server) IsAccessLogEnabled() bool
    14. func (s *Server) IsErrorLogEnabled() bool
    15. func (s *Server) SetAddr(addr string)
    16. func (s *Server) SetAllowIps(ips []string)
    17. func (s *Server) SetConfig(c ServerConfig)
    18. func (s *Server) SetCookieDomain(domain string)
    19. func (s *Server) SetCookieMaxAge(age int)
    20. func (s *Server) SetCookiePath(path string)
    21. func (s *Server) SetDenyIps(ips []string)
    22. func (s *Server) SetDenyRoutes(routes []string)
    23. func (s *Server) SetDumpRouteMap(enabled bool)
    24. func (s *Server) SetErrorLogEnabled(enabled bool)
    25. func (s *Server) SetGzipContentTypes(types []string)
    26. func (s *Server) SetHTTPSAddr(addr string)
    27. func (s *Server) SetIdleTimeout(t time.Duration)
    28. func (s *Server) SetIndexFiles(index []string)
    29. func (s *Server) SetLogHandler(handler LogHandler)
    30. func (s *Server) SetLogPath(path string)
    31. func (s *Server) SetMaxHeaderBytes(b int)
    32. func (s *Server) SetNameToUriType(t int)
    33. func (s *Server) SetPort(port ...int)
    34. func (s *Server) SetReadTimeout(t time.Duration)
    35. func (s *Server) SetServerAgent(agent string)
    36. func (s *Server) SetServerRoot(root string)
    37. func (s *Server) SetSessionIdName(name string)
    38. func (s *Server) SetSessionMaxAge(age int)
    39. func (s *Server) SetWriteTimeout(t time.Duration)
    40. func (s *Server) Status() int