Documentation ¶
Index ¶
- type EchoHttpEngine
- func (e *EchoHttpEngine) AddMiddleware(middleware ...interface{})
- func (e *EchoHttpEngine) AddStatic(prefix, root string, config ...interface{})
- func (e *EchoHttpEngine) RegisterController(rootPath string, instance controller.IController)
- func (e *EchoHttpEngine) Run(option engine.ServerRuntimeOption)
- func (e *EchoHttpEngine) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EchoHttpEngine ¶
type EchoHttpEngine struct { engine.IServerEngine // contains filtered or unexported fields }
func NewEchoHttpEngine ¶
func NewEchoHttpEngine(options ...engine.ServerEngineOption) *EchoHttpEngine
Create a new http engine (for now, gin is the only supported engine)
func (*EchoHttpEngine) AddMiddleware ¶
func (e *EchoHttpEngine) AddMiddleware(middleware ...interface{})
Add middleware to the engine
func (*EchoHttpEngine) AddStatic ¶ added in v0.0.7
func (e *EchoHttpEngine) AddStatic(prefix, root string, config ...interface{})
func (*EchoHttpEngine) RegisterController ¶
func (e *EchoHttpEngine) RegisterController(rootPath string, instance controller.IController)
func (*EchoHttpEngine) Run ¶
func (e *EchoHttpEngine) Run(option engine.ServerRuntimeOption)
func (*EchoHttpEngine) Stop ¶
func (e *EchoHttpEngine) Stop()
Click to show internal directories.
Click to hide internal directories.