Documentation
¶
Index ¶
- type Component
- type Server
- func (s *Server) AdvancedConfig(handler func(app *iris.Application)) *Server
- func (s *Server) OnErrorCode(code int, onErr func(ctx iris.Context)) *Server
- func (s *Server) RegisterComponent(component Component) *Server
- func (s *Server) RegisterComponents(components ...Component)
- func (s *Server) SetHomePage(indexHtml string) *Server
- func (s *Server) SetHttpHandler(handler http.Handler)
- func (s *Server) Start()
- type ServerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component func(app *iris.Application)
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func New ¶ added in v0.0.6
func New(config ServerConfig) (handler *Server)
func (*Server) AdvancedConfig ¶ added in v0.0.6
func (s *Server) AdvancedConfig(handler func(app *iris.Application)) *Server
func (*Server) OnErrorCode ¶
func (*Server) RegisterComponent ¶
func (*Server) RegisterComponents ¶ added in v0.0.8
func (*Server) SetHomePage ¶
func (*Server) SetHttpHandler ¶ added in v0.0.8
type ServerConfig ¶
type ServerConfig struct {
Listen string
}
Click to show internal directories.
Click to hide internal directories.