Documentation
¶
Index ¶
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 interface {
Start(components ...Component)
RegisterComponent(component Component)
SetHomePage(indexHtml string)
OnErrorCode(code int, onErr func(ctx iris.Context))
ConfigExtra(handler func(app *iris.Application))
}
func Init ¶
func Init(config ServerConfig) (handler *Server)
type ServerConfig ¶
type ServerConfig struct {
Listen string
}
Click to show internal directories.
Click to hide internal directories.