echo_engine

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2024 License: MIT Imports: 11 Imported by: 1

Documentation

Index

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()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL