Versions in this module Expand all Collapse all v0 v0.1.0 Aug 1, 2023 Changes in this version + const AUTH + const DefaultAuthPort + const DefaultNetwork + const DefaultUnauthPort + const UNAUTH + type Config struct + HTTPListenAddr string + HTTPListenPort int + HTTPMiddleware []middleware.Interface + HTTPRouter *http.ServeMux + HTTPServerIdleTimeout time.Duration + HTTPServerReadTimeout time.Duration + HTTPServerWriteTimeout time.Duration + ServerGracefulShutdownTimeout time.Duration + UnAuthorizedHTTPListenAddr string + UnAuthorizedHTTPListenPort int + UnAuthorizedHTTPMiddleware []middleware.Interface + UnAuthorizedHTTPRouter *http.ServeMux + UnAuthorizedHTTPServerIdleTimeout time.Duration + UnAuthorizedHTTPServerReadTimeout time.Duration + UnAuthorizedHTTPServerWriteTimeout time.Duration + type Server struct + func New(cfg Config) (*Server, error) + func (s *Server) GetHTTPHandlers() (http.Handler, http.Handler) + func (s *Server) RegisterTo(pattern string, handler http.Handler, where string) + func (s *Server) Run() error + func (s *Server) Shutdown()