errorhandling

package
v0.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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

func ErrorWithStatus(ctx context.Context, _ web.EmptyRequest) (int, *template.ModelView, error)

Types

type ErrorHandlingConfigurer

type ErrorHandlingConfigurer struct {
}

func (*ErrorHandlingConfigurer) Apply

type ErrorHandlingFeature

type ErrorHandlingFeature struct {
	// contains filtered or unexported fields
}

We currently don't have any stuff to configure

func New

func New() *ErrorHandlingFeature

Standard security.Feature entrypoint, DSL style. Used with security.WebSecurity

func (*ErrorHandlingFeature) AccessDeniedHandler

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 (*ErrorHandlingFeature) AuthenticationErrorHandler

func (*ErrorHandlingFeature) Identifier

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL