package
1.0.6
Repository: https://github.com/sqreen/go-agent.git
Documentation: pkg.go.dev

# README

Sqreen for Go

Sqreen's Application Security Management for Go

After performance monitoring (APM), error and log monitoring it’s time to add a security component into your app. Sqreen’s microagent automatically monitors sensitive app’s routines, blocks attacks and reports actionable infos to your dashboard.

Sqreen for Go

Echo middleware function

This package provides Sqreen's middleware function for Echo to monitor and protect requests Echo receives. Simply setup the middleware function to have your requests monitored and protected by Sqreen.

Usage:

e := echo.New()
// Setup Sqreen's middleware
e.Use(sqecho.Middleware())

// Every router endpoint is now automatically monitored and protected by Sqreen
e.GET("/", func(c echo.Context) error {
  // ...
}

Find more details on how to setup Sqreen for Go at https://docs.sqreen.com/go/installation/

# Functions

FromContext allows to access the HTTPRequestRecord from Echo request handlers if present, and nil otherwise.
Middleware is Sqreen's middleware function for echo to monitor and protect the requests echo receives.