handlers

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler[T any] func(context *T) error

func HandlerFromInterface

func HandlerFromInterface[T any](handler interface{}) (Handler[T], error)

fromInterface - Converts a function to a Handler Valid function types are: func() func() error func(*T) func(*T) error Handler[T] If the function is not a valid type, an error is returned

type Middleware

type Middleware[T any] func(Handler[T]) Handler[T]

Jump to

Keyboard shortcuts

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