helper

package
v0.1.41 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package helper provides FX annotation helpers and shared wiring utilities for the API server modules.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 scheduler runner. The annotated value is collected into the "runners" group and executed by the primary adapter's Executor.

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

This section is empty.

Directories

Path Synopsis
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