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