Documentation
¶
Overview ¶
Package models implements various services used for request data validation and applying changes to existing DB models through the app Dao.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var IdRegex = regexp.MustCompile(`^[^\@\#\$\&\|\.\,\'\"\\\/\s]+$`)
base ID value regex pattern
Functions ¶
func RunInterceptors ¶
func RunInterceptors[T any]( data T, next InterceptorNextFunc[T], interceptors ...InterceptorFunc[T], ) error
runInterceptors executes the provided list of interceptors.
Types ¶
type InterceptorFunc ¶
type InterceptorFunc[T any] func(next InterceptorNextFunc[T]) InterceptorNextFunc[T]
InterceptorFunc defines a single interceptor function that will execute the provided next func handler.
type InterceptorNextFunc ¶
InterceptorNextFunc is a interceptor handler function. Usually used in combination with InterceptorFunc.