Documentation
¶
Index ¶
- type Component
- type Config
- type Context
- type Handler
- type Router
- type Server
- func (s *Server) AdvancedConfig(handler func(app *iris.Application)) *Server
- func (s *Server) GetApplication() *iris.Application
- func (s *Server) GetMonitor() *iris.Application
- 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) *Server
- func (s *Server) SetHomePage(indexHtml string) *Server
- func (s *Server) Start(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Router ¶ added in v1.12.6
type Router interface {
Post(path string, middleware ...Handler)
Get(path string, middleware ...Handler)
Path(path string) Router
Party() iris.Party
Put(path string, middleware ...Handler)
Delete(path string, middleware ...Handler)
Options(path string, middleware ...Handler)
Patch(path string, middleware ...Handler)
}
func NewRouter ¶ added in v1.12.6
func NewRouter(app *iris.Application) Router
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) AdvancedConfig ¶
func (s *Server) AdvancedConfig(handler func(app *iris.Application)) *Server
func (*Server) GetApplication ¶ added in v1.12.6
func (s *Server) GetApplication() *iris.Application
GetApplication 服务器实例
func (*Server) GetMonitor ¶ added in v1.6.4
func (s *Server) GetMonitor() *iris.Application
GetMonitor 监控实例
func (*Server) OnErrorCode ¶
func (*Server) RegisterComponent ¶
func (*Server) RegisterComponents ¶
func (*Server) SetHomePage ¶
Click to show internal directories.
Click to hide internal directories.