Documentation
¶
Index ¶
- Constants
- Variables
- func AppendTrailingSlash(append bool)
- func AttachController(rg RouterGroup, instance any) error
- func EmbedController(rg RouterGroup, instance any) error
- type ControllerInitMethod
- type ErrRouterRegisterControllerInitMethodError
- type ErrRouterRegisterControllerWrongInitSignature
- type ErrRouterRegisterControllerWrongMethodSignature
- type ErrRouterRegisterControllerWrongWrapperMethodSignature
- type HandlerFunc
- type RouterGroup
Constants ¶
View Source
const ( ControllerPrefix = "Controller" MethodActionPrefix = "Action" MethodNameInit = "Init" MethodNameBefore = "Before" MethodNameAfter = "After" )
Variables ¶
View Source
var ErrRouterRegisterControllerError = errors.New(errRegisterControllerPrefix + "registration")
Functions ¶
func AppendTrailingSlash ¶
func AppendTrailingSlash(append bool)
func AttachController ¶
func AttachController(rg RouterGroup, instance any) error
func EmbedController ¶
func EmbedController(rg RouterGroup, instance any) error
Types ¶
type ControllerInitMethod ¶
type ControllerInitMethod = func() error
type ErrRouterRegisterControllerInitMethodError ¶
type ErrRouterRegisterControllerInitMethodError struct {
// contains filtered or unexported fields
}
func (*ErrRouterRegisterControllerInitMethodError) Error ¶
func (e *ErrRouterRegisterControllerInitMethodError) Error() string
func (*ErrRouterRegisterControllerInitMethodError) Is ¶
func (e *ErrRouterRegisterControllerInitMethodError) Is(err error) bool
func (*ErrRouterRegisterControllerInitMethodError) Unwrap ¶
func (e *ErrRouterRegisterControllerInitMethodError) Unwrap() error
type ErrRouterRegisterControllerWrongInitSignature ¶
type ErrRouterRegisterControllerWrongInitSignature struct {
// contains filtered or unexported fields
}
func (*ErrRouterRegisterControllerWrongInitSignature) Error ¶
func (e *ErrRouterRegisterControllerWrongInitSignature) Error() string
func (*ErrRouterRegisterControllerWrongInitSignature) Is ¶
func (e *ErrRouterRegisterControllerWrongInitSignature) Is(err error) bool
type ErrRouterRegisterControllerWrongMethodSignature ¶
type ErrRouterRegisterControllerWrongMethodSignature struct {
// contains filtered or unexported fields
}
func (*ErrRouterRegisterControllerWrongMethodSignature) Error ¶
func (e *ErrRouterRegisterControllerWrongMethodSignature) Error() string
func (*ErrRouterRegisterControllerWrongMethodSignature) Is ¶
func (e *ErrRouterRegisterControllerWrongMethodSignature) Is(err error) bool
type ErrRouterRegisterControllerWrongWrapperMethodSignature ¶
type ErrRouterRegisterControllerWrongWrapperMethodSignature ErrRouterRegisterControllerWrongMethodSignature
wrapper method is special type of controller method
func (*ErrRouterRegisterControllerWrongWrapperMethodSignature) Error ¶
func (e *ErrRouterRegisterControllerWrongWrapperMethodSignature) Error() string
func (*ErrRouterRegisterControllerWrongWrapperMethodSignature) Is ¶
func (e *ErrRouterRegisterControllerWrongWrapperMethodSignature) Is(err error) bool
type HandlerFunc ¶
type RouterGroup ¶
Click to show internal directories.
Click to hide internal directories.