Web Server配置管理
配置管理方法
func (s *Server) DumpRoutesMap()
func (s *Server) EnableAdmin(pattern ...string)
func (s *Server) EnableHTTPS(certFile, keyFile string)
func (s *Server) EnablePprof(pattern ...string)
func (s *Server) GetCookieDomain() string
func (s *Server) GetCookieMaxAge() int
func (s *Server) GetCookiePath() string
func (s *Server) GetLogHandler() LogHandler
func (s *Server) GetLogPath() string
func (s *Server) GetName() string
func (s *Server) GetRouteMap() string
func (s *Server) GetSessionIdName() string
func (s *Server) IsAccessLogEnabled() bool
func (s *Server) IsErrorLogEnabled() bool
func (s *Server) SetAddr(addr string)
func (s *Server) SetAllowIps(ips []string)
func (s *Server) SetConfig(c ServerConfig)
func (s *Server) SetCookieDomain(domain string)
func (s *Server) SetCookieMaxAge(age int)
func (s *Server) SetCookiePath(path string)
func (s *Server) SetDenyIps(ips []string)
func (s *Server) SetDenyRoutes(routes []string)
func (s *Server) SetDumpRouteMap(enabled bool)
func (s *Server) SetErrorLogEnabled(enabled bool)
func (s *Server) SetGzipContentTypes(types []string)
func (s *Server) SetHTTPSAddr(addr string)
func (s *Server) SetIdleTimeout(t time.Duration)
func (s *Server) SetIndexFiles(index []string)
func (s *Server) SetLogHandler(handler LogHandler)
func (s *Server) SetLogPath(path string)
func (s *Server) SetMaxHeaderBytes(b int)
func (s *Server) SetNameToUriType(t int)
func (s *Server) SetPort(port ...int)
func (s *Server) SetReadTimeout(t time.Duration)
func (s *Server) SetServerAgent(agent string)
func (s *Server) SetServerRoot(root string)
func (s *Server) SetSessionIdName(name string)
func (s *Server) SetSessionMaxAge(age int)
func (s *Server) SetWriteTimeout(t time.Duration)
func (s *Server) Status() int