Documentation ¶
Index ¶
- Variables
- func ErrorWithStatus(ctx context.Context, _ web.EmptyRequest) (int, *template.ModelView, error)
- type ErrorHandlingConfigurer
- type ErrorHandlingFeature
- func (f *ErrorHandlingFeature) AccessDeniedHandler(v security.AccessDeniedHandler) *ErrorHandlingFeature
- func (f *ErrorHandlingFeature) AdditionalErrorHandler(v security.ErrorHandler) *ErrorHandlingFeature
- func (f *ErrorHandlingFeature) AuthenticationEntryPoint(v security.AuthenticationEntryPoint) *ErrorHandlingFeature
- func (f *ErrorHandlingFeature) AuthenticationErrorHandler(v security.AuthenticationErrorHandler) *ErrorHandlingFeature
- func (f *ErrorHandlingFeature) Identifier() security.FeatureIdentifier
- type ErrorHandlingMiddleware
Constants ¶
This section is empty.
Variables ¶
View Source
var (
FeatureId = security.FeatureId("ErrorHandling", security.FeatureOrderErrorHandling)
)
View Source
var Module = &bootstrap.Module{ Name: "error handling", Precedence: security.MinSecurityPrecedence + 20, Options: []fx.Option{ fx.Invoke(register), }, }
Functions ¶
func ErrorWithStatus ¶
Types ¶
type ErrorHandlingConfigurer ¶
type ErrorHandlingConfigurer struct { }
func (*ErrorHandlingConfigurer) Apply ¶
func (ehc *ErrorHandlingConfigurer) Apply(feature security.Feature, ws security.WebSecurity) error
type ErrorHandlingFeature ¶
type ErrorHandlingFeature struct {
// contains filtered or unexported fields
}
We currently don't have any stuff to configure
func Configure ¶
func Configure(ws security.WebSecurity) *ErrorHandlingFeature
func New ¶
func New() *ErrorHandlingFeature
Standard security.Feature entrypoint, DSL style. Used with security.WebSecurity
func (*ErrorHandlingFeature) AccessDeniedHandler ¶
func (f *ErrorHandlingFeature) AccessDeniedHandler(v security.AccessDeniedHandler) *ErrorHandlingFeature
func (*ErrorHandlingFeature) AdditionalErrorHandler ¶
func (f *ErrorHandlingFeature) AdditionalErrorHandler(v security.ErrorHandler) *ErrorHandlingFeature
AdditionalErrorHandler add security.ErrorHandler to existing list. This value is typically used by other features, because there are no other type of concrete errors except for AuthenticationError and AccessControlError, which are handled by AccessDeniedHandler, AuthenticationErrorHandler and AuthenticationEntryPoint
func (*ErrorHandlingFeature) AuthenticationEntryPoint ¶
func (f *ErrorHandlingFeature) AuthenticationEntryPoint(v security.AuthenticationEntryPoint) *ErrorHandlingFeature
func (*ErrorHandlingFeature) AuthenticationErrorHandler ¶
func (f *ErrorHandlingFeature) AuthenticationErrorHandler(v security.AuthenticationErrorHandler) *ErrorHandlingFeature
func (*ErrorHandlingFeature) Identifier ¶
func (f *ErrorHandlingFeature) Identifier() security.FeatureIdentifier
Standard security.Feature entrypoint
type ErrorHandlingMiddleware ¶
type ErrorHandlingMiddleware struct {
// contains filtered or unexported fields
}
func NewErrorHandlingMiddleware ¶
func NewErrorHandlingMiddleware() *ErrorHandlingMiddleware
func (*ErrorHandlingMiddleware) HandlerFunc ¶
func (eh *ErrorHandlingMiddleware) HandlerFunc() gin.HandlerFunc
Click to show internal directories.
Click to hide internal directories.