gomiddleware

package module
v2.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2026 License: MIT Imports: 5 Imported by: 0

README

MrAndreID / Go Middleware

Go Reference

The MrAndreID/GoMiddleware package is a collection of functions in the go language.

Table of Contents

Installation

To use The MrAndreID/GoMiddleware package, you must follow the steps below:

go get -u github.com/MrAndreID/gomiddleware

Usage

To use The MrAndreID/GoMiddleware package, you must combine it with The Echo Framework.

Set Request ID for Echo Framework
import (
    "github.com/MrAndreID/gomiddleware"
)

e := echo.New()

e.Pre(gomiddleware.EchoSetRequestID)
Set No Cache for Echo Framework
import (
    "github.com/MrAndreID/gomiddleware"
)

e := echo.New()

e.Use(gomiddleware.EchoSetNoCache)
Set Route List for Echo Framework
import (
    "github.com/MrAndreID/gomiddleware"
)

e := echo.New()

routeList := gomiddleware.EchoSetRouteList(e.Router().Routes())
Set Maintenance Mode for Echo Framework
import (
    "github.com/MrAndreID/gomiddleware"
)

e := echo.New()

e.Use(gomiddleware.EchoSetMaintenanceMode("fileName.flag"))
Check Application Key for Echo Framework
import (
    "github.com/MrAndreID/gomiddleware"
)

e := echo.New()

e.Use(gomiddleware.EchoCheckApplicationKey("yourApplicationKey"))

Versioning

I use Semantic Versioning. For the versions available, see the tags on this repository.

Authors

Andrea Adam - MrAndreID

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.

Official Documentation for Go Language

Documentation for Go Language can be found on the Go Package website.

License

The MrAndreID/GoMiddleware is released under the MIT License. See the LICENSE file for more information.

More

Documentation can be found on https://go.dev/.

Jump to

Keyboard shortcuts

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