gonest
API Reference

Guard

gonest.NewGuard reference

gonest.NewGuard(func(guard *gonest.Guard) {...})

MethodDescription
Handler(func(ctx *gonest.RestContext) bool)false produces an automatic 403; panicking with an Exception produces that exception's response.

Applied via Controller.Guards(...). Controller-scoped only — no Module.Guards, no MustInject inside the builder.

See: Guards