gonest
API Reference

Interceptor

gonest.NewInterceptor reference

gonest.NewInterceptor(func(interceptor *gonest.Interceptor) {...})

MethodDescription
Handler(func(ctx *gonest.RestContext, next gonest.InterceptorNext))Code before next(ctx) runs before the handler; code after runs after.

Applied via Controller.Interceptors(...). Controller-scoped only.

See: Interceptors