![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
github.com/savsgio/atreugo/v7
Micro-framework to make simple the use of routing and middlewares in fasthttp.
go get github.com/savsgio/atreugo/v7
Best Performance: Atreugo is one of the fastest go web frameworks in the go-web-framework-benchmark.
* Smaller is better
*atreugo.RequestCtx
is equal than *fasthttp.RequestCtx
, but adding extra funtionality, so you can use
the same functions of *fasthttp.RequestCtx
. Don't worry :smile:
package main
import (
"errors"
"github.com/savsgio/atreugo/v7"
"github.com/valyala/fasthttp"
)
func main() {
config := &atreugo.Config{
Host: "0.0.0.0",
Port: 8000,
}
server := atreugo.New(config)
fnMiddlewareOne := func(ctx *atreugo.RequestCtx) (int, error) {
return fasthttp.StatusOK, nil
}
fnMiddlewareTwo := func(ctx *atreugo.RequestCtx) (int, error) {
// Disable this middleware if you don't want to see this error
return fasthttp.StatusBadRequest, errors.New("Error example")
}
server.UseMiddleware(fnMiddlewareOne, fnMiddlewareTwo)
server.Path("GET", "/", func(ctx *atreugo.RequestCtx) error {
return ctx.HTTPResponse("<h1>Atreugo Micro-Framework</h1>")
})
server.Path("GET", "/jsonPage", func(ctx *atreugo.RequestCtx) error {
return ctx.JSONResponse(atreugo.JSON{"Atreugo": true})
})
err := server.ListenAndServe()
if err != nil {
panic(err)
}
}
Feel free to contribute it or fork me... :wink:
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.