Versions in this module Expand all Collapse all v0 v0.0.2 Oct 18, 2024 v0.0.1 Oct 18, 2024 Changes in this version + func LogDebug(message string, value string) + func LogError(message string, value string) + func LogInfo(message string, value string) + type LogLevel int + const Debug + const Error + const Info + const None + type Server struct + var ServerInstance *Server + func NewServer(config ...ServerConfig) *Server + func (s *Server) AddTemplateSource(source string) + func (s *Server) GetSession(w http.ResponseWriter, r *http.Request) (sessions.Session, bool) + func (s *Server) Handle(pattern string, handler http.Handler) + func (s *Server) HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request)) + func (s *Server) Render(w io.Writer, template string, data map[string]interface{}) + func (s *Server) SessionKey() string + func (s *Server) Sessions() sessions.Sessions + func (s *Server) SetLogLevel(level LogLevel) + func (s *Server) Start() error + func (s *Server) Stop() error + func (s *Server) Templates() *templates.Templates + type ServerConfig struct + Address string + BaseContext func(net.Listener) context.Context + ConnContext func(ctx context.Context, c net.Conn) context.Context + ConnState func(net.Conn, http.ConnState) + DateFormat func(time.Time) string + DisableGeneralOptionsHandler bool + ErrorLog *log.Logger + Handler http.Handler + IdleTimeout time.Duration + LogLevel LogLevel + MaxHeaderBytes int + ReadHeaderTimeout time.Duration + ReadTimeout time.Duration + SessionKey string + SessionManager sessions.Sessions + TLSConfig *tls.Config + WriteTimeout time.Duration