helper

package
v0.1.29 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package helper provides utility functions and types to assist in building the application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsController

func AsController(f any) any

AsController is a helper function to annotate a function as a controller.

func AsHealthIndicator

func AsHealthIndicator(f any) any

AsHealthIndicator is a helper function to annotate a function as a health indicator.

func AsRunner

func AsRunner(f any) any

AsRunner is a helper function to annotate a function as a runner.

func NewModule

func NewModule() fx.Option

NewModule creates a new module for helper services.

func PointerFunc

func PointerFunc[T any](a T) func() *T

PointerFunc is a generic function that returns a function that returns a pointer to the input value. It is a helper function to generate a function that returns a pointer to the input value. It is used to provide a function as a interface.

func ValueFunc

func ValueFunc[T any](a T) func() T

ValueFunc is a generic function that returns a function that returns the input value. It is a helper function to generate a function that returns the input value.

Types

type Controller

type Controller interface {
	RoutesInfo() gin.RoutesInfo
}

Controller is an interface that defines the methods for handling HTTP requests.

type Runner

type Runner = lifecycle.Runner

Runner is an alias for lifecycle.Runner for backward compatibility.

Directories

Path Synopsis
Package lifecycle provides application lifecycle management.
Package lifecycle provides application lifecycle management.
Package management provides management HTTP server functionality.
Package management provides management HTTP server functionality.

Jump to

Keyboard shortcuts

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