handler

package
v0.0.1-20260118-131225... Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteControllerHandler

func ExecuteControllerHandler[T any](handler RequestHandler[T]) gin.HandlerFunc

ExecuteControllerHandler executes a RequestHandler and returns a gin.HandlerFunc

func WrapServiceMiddlewareHandler

func WrapServiceMiddlewareHandler(handler ServiceMiddlewareHandler) gin.HandlerFunc

WrapServiceMiddlewareHandler wraps a ServiceMiddlewareHandler and returns a gin.HandlerFunc

Types

type RequestHandler

type RequestHandler[T any] func(*context.ServiceContext) result.Result[T]

RequestHandler is a function that takes a *context.ServiceContext and returns a result.Result[T]

type ServiceMiddlewareHandler

type ServiceMiddlewareHandler func(*context.ServiceContext) result.Result[bool]

ServiceMiddlewareHandler is a function that takes a *context.ServiceContext and returns a result.Result[bool]

Jump to

Keyboard shortcuts

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